postgresql/src/backend
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
..
access Fix access-off-end-of-array in clog.c. 2017-10-06 12:20:13 -04:00
bootstrap pgindent run for 9.5 2015-05-23 21:35:49 -04:00
catalog Include foreign tables in information_schema.table_privileges 2017-08-15 19:32:00 -04:00
commands Fix freezing of a dead HOT-updated tuple 2017-09-28 16:44:01 +02:00
executor Fix traversal of half-frozen update chains 2017-10-06 17:14:42 +02:00
foreign Code review for foreign/custom join pushdown patch. 2015-05-10 14:36:36 -04:00
lib Revert "Permit dump/reload of not-too-large >1GB tuples" 2016-12-06 12:45:49 -03:00
libpq Fix saving and restoring umask 2017-09-23 10:04:55 -04:00
main Avoid crash on old Windows with AVX2-capable CPU for VS2013 builds 2016-03-10 14:10:32 +01:00
nodes Fix improper repetition of previous results from a hashed aggregate. 2016-08-24 14:37:50 -04:00
optimizer Allow rel_is_distinct_for() to look through RelabelType below OpExpr. 2017-09-17 15:28:51 -04:00
parser Add missing ALTER USER variants 2017-08-03 20:55:44 -04:00
po Translation updates 2017-08-28 10:15:52 -04:00
port Avoid depending on non-POSIX behavior of fcntl(2). 2017-04-21 15:55:56 -04:00
postmaster On Windows, retry process creation if we fail to reserve shared memory. 2017-07-10 11:00:09 -04:00
regex Fix regexport.c to behave sanely with lookaround constraints. 2017-04-13 17:18:35 -04:00
replication Fix more user-visible elog() calls. 2017-10-05 08:32:48 -04:00
rewrite Fix multiple assignments to a column of a domain type. 2017-07-11 16:48:59 -04:00
snowball Remove no-longer-required function declarations. 2015-05-24 12:20:23 -04:00
storage Fix failure-to-read-man-page in commit 899bd785c. 2017-09-26 13:43:12 -04:00
tcop Unify SIGHUP handling between normal and walsender backends. 2017-06-05 19:18:16 -07:00
tsearch Reduce memory usage of tsvector type analyze function. 2017-07-12 22:03:58 +03:00
utils Fix behavior when converting a float infinity to numeric. 2017-09-27 17:05:53 -04:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
Makefile AIX: Link the postgres executable with -Wl,-brtllib. 2015-07-15 21:00:30 -04:00
nls.mk Translation updates 2015-02-01 23:23:40 -05:00