Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3308467

Browse files
committed
Zeroing unused parts ducring tsquery construction.
Per investigation failure skink buildfarm member andRANDOMIZE_ALLOCATED_MEMORY help
1 parentf338dd7 commit3308467

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)

[8]ページ先頭

©2009-2025 Movatter.jp