Skip to content

Commit 3308467

Browse files
committed
Zeroing unused parts ducring tsquery construction.
Per investigation failure skink buildfarm member and RANDOMIZE_ALLOCATED_MEMORY help
1 parent f338dd7 commit 3308467

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/utils/adt/tsquery_cleanup.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,8 @@ makeNODE(int8 op, NODE *left, NODE *right)
347347
{
348348
NODE *node = palloc(sizeof(NODE));
349349

350-
node->valnode = palloc(sizeof(QueryItem));
350+
/* zeroing allocation to prevent difference in unused bytes */
351+
node->valnode = palloc0(sizeof(QueryItem));
351352

352353
node->valnode->qoperator.type = QI_OPR;
353354
node->valnode->qoperator.oper = op;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy