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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy