aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-10-06 12:20:13 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-10-06 12:20:13 -0400
commitc209b5034ecb7cfa2bd09c960bdf0a22afaa0986 (patch)
tree7407abd6be6e7010893bac71be97bf4bd642c526 /src/backend/utils/adt/jsonfuncs.c
parent8b6d85f2dc1ed01fc3272703abb2c267859468eb (diff)
downloadpostgresql-c209b5034ecb7cfa2bd09c960bdf0a22afaa0986.tar.gz
postgresql-c209b5034ecb7cfa2bd09c960bdf0a22afaa0986.zip
Fix access-off-end-of-array in clog.c.
Sloppy loop coding in set_status_by_pages() resulted in fetching one array element more than it should from the subxids[] array. The odds of this resulting in SIGSEGV are pretty small, but we've certainly seen that happen with similar mistakes elsewhere. While at it, we can get rid of an extra TransactionIdToPage() calculation per loop. Per report from David Binderman. Back-patch to all supported branches, since this code is quite old. Discussion: https://postgr.es/m/HE1PR0802MB2331CBA919CBFFF0C465EB429C710@HE1PR0802MB2331.eurprd08.prod.outlook.com
Diffstat (limited to 'src/backend/utils/adt/jsonfuncs.c')
0 files changed, 0 insertions, 0 deletions