postgresql/src
Michael Paquier a45ed975c5 Fix memory overrun when querying pg_stat_slru
pg_stat_get_slru() in pgstatfuncs.c would point to one element after the
end of the array PgStat_SLRUStats when finishing to scan its entries.
This had no direct consequences as no data from the extra memory area
was read, but static analyzers would rightfully complain here.  So let's
be clean.

While on it, this adds one regression test in the area reserved for
system views.

Reported-by: Alexander Kozhemyakin, via AddressSanitizer
Author: Kyotaro Horiguchi
Discussion: https://postgr.es/m/17280-37da556e86032070@postgresql.org
Backpatch-through: 13
2021-11-12 21:49:21 +09:00
..
backend Fix memory overrun when querying pg_stat_slru 2021-11-12 21:49:21 +09:00
bin Have the server properly terminate tar archives. 2021-11-09 14:29:15 -05:00
common Fix buffer overrun in unicode string normalization with empty input 2021-11-11 15:00:59 +09:00
fe_utils Replace unicode characters in comments with ascii 2021-11-01 22:42:49 +01:00
include Improve performance of pgarch_readyXlog() with many status files. 2021-11-11 15:20:26 -05:00
interfaces Remove check for accept() argument types 2021-11-09 15:35:26 +01:00
makefiles
pl plpgsql: report proper line number for errors in variable initialization. 2021-10-31 12:43:47 -04:00
port Remove check for accept() argument types 2021-11-09 15:35:26 +01:00
template
test Fix memory overrun when querying pg_stat_slru 2021-11-12 21:49:21 +09:00
timezone Update time zone data files to tzdata release 2021e. 2021-10-29 11:38:18 -04:00
tools Remove check for accept() argument types 2021-11-09 15:35:26 +01:00
tutorial
.gitignore
DEVELOPERS
Makefile
Makefile.global.in Add support for LZ4 compression in pg_receivewal 2021-11-05 11:33:25 +09:00
Makefile.shlib AIX: Fix missing libpq symbols by respecting SHLIB_EXPORTS. 2021-09-06 11:27:59 -07:00
nls-global.mk