diff options
author | Daniel Gustafsson <dgustafsson@postgresql.org> | 2024-02-29 12:19:52 +0100 |
---|---|---|
committer | Daniel Gustafsson <dgustafsson@postgresql.org> | 2024-02-29 12:19:52 +0100 |
commit | 24dc4afebd5a82f30aed6bd18d48ff42ef787410 (patch) | |
tree | 851e7a5e508313773fbdc9fda64d9da27e1201b9 /src/backend/executor/nodeFunctionscan.c | |
parent | c0b4dad38e84d4b5f25391b97f0d51b66eb020f2 (diff) | |
download | postgresql-24dc4afebd5a82f30aed6bd18d48ff42ef787410.tar.gz postgresql-24dc4afebd5a82f30aed6bd18d48ff42ef787410.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/executor/nodeFunctionscan.c')
0 files changed, 0 insertions, 0 deletions