mirror of
https://github.com/postgres/postgres.git
synced 2026-04-21 14:19:26 -04:00
Avoid uninitialized bits in the result of QTN2QT().
Found with additional valgrind testing. Noah Misch
This commit is contained in:
parent
c6fc554a82
commit
bd9215a346
1 changed files with 1 additions and 1 deletions
|
|
@ -336,7 +336,7 @@ QTN2QT(QTNode *in)
|
|||
cntsize(in, &sumlen, &nnode);
|
||||
len = COMPUTESIZE(nnode, sumlen);
|
||||
|
||||
out = (TSQuery) palloc(len);
|
||||
out = (TSQuery) palloc0(len);
|
||||
SET_VARSIZE(out, len);
|
||||
out->size = nnode;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue