summaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2021-11-12 21:50:08 +0900
committerMichael Paquier <michael@paquier.xyz>2021-11-12 21:50:08 +0900
commita691a229831ad3b72d933b1858c76be44b508400 (patch)
tree9df6d417eac714bcb45fc2ee6a3d720b456abc60 /src/backend/executor
parentd4e9d6946995cceaed97ee4570c4c867b3ea2104 (diff)
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
Diffstat (limited to 'src/backend/executor')
0 files changed, 0 insertions, 0 deletions