aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/giststrat.c
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2025-02-05 00:15:17 +0200
committerAlexander Korotkov <akorotkov@postgresql.org>2025-02-05 00:45:37 +0200
commitd54d5668b4d7ef44e2c8475ed3944686293e9829 (patch)
tree08dcef5b6dace593ae6955b4d615c5587748a0b1 /src/backend/access/gist/giststrat.c
parente8d8174caf75c5724847b43b886a7feb1628c4d4 (diff)
downloadpostgresql-d54d5668b4d7ef44e2c8475ed3944686293e9829.tar.gz
postgresql-d54d5668b4d7ef44e2c8475ed3944686293e9829.zip
pg_controldata: Fix possible errors on corrupted pg_control
Protect against malformed timestamps. Also protect against negative WalSegSz as it triggers division by zero: ((0x100000000UL) / (WalSegSz)) can turn into zero in XLogFileName(xlogfilename, ControlFile->checkPointCopy.ThisTimeLineID, segno, WalSegSz); because if WalSegSz is -1 then by arithmetic rules in C we get 0x100000000UL / 0xFFFFFFFFFFFFFFFFUL == 0. Author: Ilyasov Ian <ianilyasov@outlook.com> Author: Anton Voloshin <a.voloshin@postgrespro.ru> Backpatch-through: 13
Diffstat (limited to 'src/backend/access/gist/giststrat.c')
0 files changed, 0 insertions, 0 deletions