Content-Length: 259751 | pFad | http://github.com/postgrespro/postgres_cluster/commit/3308467905aa157139d24375850cfe49ee90a0cf

8B Zeroing unused parts ducring tsquery construction. · postgrespro/postgres_cluster@3308467 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/3308467905aa157139d24375850cfe49ee90a0cf

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy