Zeroing unused parts ducring tsquery construction.
Per investigation failure skink buildfarm member and RANDOMIZE_ALLOCATED_MEMORY help
This commit is contained in:
parent
f338dd7585
commit
3308467905
@ -347,7 +347,8 @@ makeNODE(int8 op, NODE *left, NODE *right)
|
||||
{
|
||||
NODE *node = palloc(sizeof(NODE));
|
||||
|
||||
node->valnode = palloc(sizeof(QueryItem));
|
||||
/* zeroing allocation to prevent difference in unused bytes */
|
||||
node->valnode = palloc0(sizeof(QueryItem));
|
||||
|
||||
node->valnode->qoperator.type = QI_OPR;
|
||||
node->valnode->qoperator.oper = op;
|
||||
|
Loading…
x
Reference in New Issue
Block a user