diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2017-10-06 12:20:12 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2017-10-06 12:20:23 -0400 |
commit | 6b87416c9a4dd305b76e619ecac36e2b968462f8 (patch) | |
tree | 4816170e1d5da23098f07595edf9c2984b587d35 /src/backend/executor/nodeProjectSet.c | |
parent | c3d9a66024a93e6d0380bdd1b18cb03a67216b72 (diff) | |
download | postgresql-6b87416c9a4dd305b76e619ecac36e2b968462f8.tar.gz postgresql-6b87416c9a4dd305b76e619ecac36e2b968462f8.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/executor/nodeProjectSet.c')
0 files changed, 0 insertions, 0 deletions