postgresql/src
Tom Lane c7c93dd55a 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
2017-10-06 12:20:13 -04:00
..
backend Fix access-off-end-of-array in clog.c. 2017-10-06 12:20:13 -04:00
bin Use a longer connection timeout in pg_isready test. 2017-10-01 12:43:47 -04:00
common pgindent run for 9.5 2015-05-23 21:35:49 -04:00
include Fix traversal of half-frozen update chains 2017-10-06 17:14:42 +02:00
interfaces Fixed ECPG to correctly handle out-of-scope cursor declarations with pointers 2017-09-18 23:07:44 +02:00
makefiles Always use -fPIC, not -fpic, when building shared libraries with gcc. 2017-06-01 13:32:56 -04:00
pl Translation updates 2017-08-28 10:15:52 -04:00
port Stamp 9.5.9. 2017-08-28 17:24:28 -04:00
template AIX: Test the -qlonglong option before use. 2015-07-17 03:01:29 -04:00
test Fix freezing of a dead HOT-updated tuple 2017-09-28 16:44:01 +02:00
timezone Sync our copy of the timezone library with IANA tzcode master. 2017-09-22 00:04:21 -04:00
tools Fix macro-redefinition warning on MSVC. 2017-09-03 11:01:08 -04:00
tutorial Remove no-longer-required function declarations. 2015-05-24 12:20:23 -04:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Install TAP test infrastructure so it's available for extension testing. 2016-09-23 15:50:00 -04:00
Makefile.global.in PL/Perl portability fix: absorb relevant -D switches from Perl. 2017-07-31 12:38:35 -04:00
Makefile.shlib Fix typos in comments. 2017-02-06 11:34:18 +02:00
nls-global.mk nls-global.mk: search build dir for source files, too 2016-06-07 18:55:18 -04:00
win32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00