Thread
Commits
-
Fix access-off-end-of-array in clog.c.
- 6b87416c9a4d 11.0 landed
- d45fb6e9d8ca 9.3.20 landed
- c7c93dd55af5 9.5.10 landed
- c209b5034ecb 9.4.15 landed
- 6d2ef1cb99eb 9.2.24 landed
- 69e931f96ef4 9.6.6 landed
- 4c20ee5f27a2 10.1 landed
-
postgresql-10.0/src/backend/access/transam/clog.c:234: sanity check after use ?
David Binderman <dcb314@hotmail.com> — 2017-10-06T15:15:46Z
Hello there, postgresql-10.0/src/backend/access/transam/clog.c:234]: (style) Array index 'i' is used before limits check. Source code is while (TransactionIdToPage(subxids[i]) == pageno && i < nsubxids) Maybe it is better to sanity check the array index before use, not after. Regards David Binderman -
Re: postgresql-10.0/src/backend/access/transam/clog.c:234: sanity check after use ?
Tom Lane <tgl@sss.pgh.pa.us> — 2017-10-06T15:52:59Z
David Binderman <dcb314@hotmail.com> writes: > postgresql-10.0/src/backend/access/transam/clog.c:234]: (style) Array index 'i' is used before limits check. Yeah, this is pretty bogus, will fix (and the same for your other one). regards, tom lane