projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5763ce
)
Fix missing parentheses resulting in wrong order of dereference.
author
Robert Haas
Wed, 15 Jan 2014 15:53:07 +0000
(10:53 -0500)
committer
Robert Haas
Wed, 15 Jan 2014 16:00:50 +0000
(11:00 -0500)
This could result in referencing uninitialized memory.
Michael Paquier, in response to a complaint from Andres Freund
src/backend/access/heap/tuptoaster.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/access/heap/tuptoaster.c
b/src/backend/access/heap/tuptoaster.c
index 633717a446d2b37cb43af706f1eaeb5b50fcdf4b..97c9f238a7bba104a8a43838b1576ae8dafa5257 100644
(file)
--- a/
src/backend/access/heap/tuptoaster.c
+++ b/
src/backend/access/heap/tuptoaster.c
@@
-2156,7
+2156,7
@@
toast_open_indexes(Relation toastrel,
/* Fetch the first valid index in list */
for (i = 0; i < *num_indexes; i++)
{
- Relation toastidx =
*toastidxs
[i];
+ Relation toastidx =
(*toastidxs)
[i];
if (toastidx->rd_index->indisvalid)
{
res = i;