aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/cache/lsyscache.c
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2024-02-29 12:19:52 +0100
committerDaniel Gustafsson <dgustafsson@postgresql.org>2024-02-29 12:19:52 +0100
commit217928ddb45a8a3b03fc1f9d3d97166f1d9a9d12 (patch)
treed723bfae4ea11bea2d35f9916a834e9e813408fe /src/backend/utils/cache/lsyscache.c
parentfe3b1b575e24748ddb9b3b67394fa10c279090ac (diff)
downloadpostgresql-217928ddb45a8a3b03fc1f9d3d97166f1d9a9d12.tar.gz
postgresql-217928ddb45a8a3b03fc1f9d3d97166f1d9a9d12.zip
Fix integer underflow in shared memory debugging
dsa_dump would print a large negative number instead of zero for segment bin 0. Fix by explicitly checking for underflow and add special case for bin 0. Backpatch to all supported versions. Author: Ian Ilyasov <ianilyasov@outlook.com> Reviewed-by: Robert Haas <robertmhaas@gmail.com> Discussion: https://postgr.es/m/GV1P251MB1004E0D09D117D3CECF9256ECD502@GV1P251MB1004.EURP251.PROD.OUTLOOK.COM Backpatch-through: v12
Diffstat (limited to 'src/backend/utils/cache/lsyscache.c')
0 files changed, 0 insertions, 0 deletions