projects
/
users
/
c2main
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18afe42
)
Avoid uninitialized bits in the result of QTN2QT().
author
Tom Lane
<
[email protected]
>
Tue, 24 May 2011 18:20:08 +0000
(14:20 -0400)
committer
Tom Lane
<
[email protected]
>
Tue, 24 May 2011 18:22:05 +0000
(14:22 -0400)
Found with additional valgrind testing.
Noah Misch
src/backend/utils/adt/tsquery_util.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/adt/tsquery_util.c
b/src/backend/utils/adt/tsquery_util.c
index fd5430ce166c79370ecc4c398a4b4817e0a18a70..01afc4e0bbb25efb30ce0034563324dd4c5d8dc1 100644
(file)
--- a/
src/backend/utils/adt/tsquery_util.c
+++ b/
src/backend/utils/adt/tsquery_util.c
@@
-339,7
+339,7
@@
QTN2QT(QTNode *in)
cntsize(in, &sumlen, &nnode);
len = COMPUTESIZE(nnode, sumlen);
- out = (TSQuery) palloc(len);
+ out = (TSQuery) palloc
0
(len);
SET_VARSIZE(out, len);
out->size = nnode;