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

Appearance settings

Commit d02c0dd

Browse filesBrowse 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
Copy full SHA for d02c0dd

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/backend/access/heap/tuptoaster.c

Copy file name to clipboardExpand all lines: src/backend/access/heap/tuptoaster.c
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.