Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d02c0dd

Browse files
committed
Fix missing parentheses resulting in wrong order of dereference.
This could result in referencing uninitialized memory. Michael Paquier, in response to a complaint from Andres Freund
1 parent b5763ce commit d02c0dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/heap/tuptoaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2156,7 +2156,7 @@ toast_open_indexes(Relation toastrel,
21562156
/* Fetch the first valid index in list */
21572157
for (i = 0; i < *num_indexes; i++)
21582158
{
2159-
Relation toastidx = *toastidxs[i];
2159+
Relation toastidx = (*toastidxs)[i];
21602160
if (toastidx->rd_index->indisvalid)
21612161
{
21622162
res = i;

0 commit comments

Comments
 (0)