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

Commit20661c1

Browse files
committed
Initialize t_self and t_tableOid in statext_expressions_load
The function is building a fake heap tuple, but left some of the headerfields (tid and table OID) uninitialized. Per Coverity report.Reported-by: Ranier VilelaDiscussion:https://postgr.es/m/CAEudQApj6h8tZ0-eP5Af5PKc5NG1YUc7=SdN_99YoHS51fKa0Q@mail.gmail.com
1 parent60f1f09 commit20661c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/backend/statistics/extended_stats.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2420,6 +2420,8 @@ statext_expressions_load(Oid stxoid, int idx)
24202420

24212421
/* Build a temporary HeapTuple control structure */
24222422
tmptup.t_len=HeapTupleHeaderGetDatumLength(td);
2423+
ItemPointerSetInvalid(&(tmptup.t_self));
2424+
tmptup.t_tableOid=InvalidOid;
24232425
tmptup.t_data=td;
24242426

24252427
tup=heap_copytuple(&tmptup);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp