aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2022-02-16 12:01:32 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2022-02-16 12:01:32 +0200
commit9ed87a78e0377728588e5c8688202195694581aa (patch)
tree38313c971e677018de0216b307607783da7216b7 /src/backend/access/gist
parent2549f0661bd28571d7200d6f82f752a7ee5d47e1 (diff)
downloadpostgresql-9ed87a78e0377728588e5c8688202195694581aa.tar.gz
postgresql-9ed87a78e0377728588e5c8688202195694581aa.zip
Fix read beyond buffer bug introduced by the split xlog.c patch.
FinishWalRecovery() copied the valid part of the last WAL block into a palloc'd buffer, and the code in StartupXLOG() copied it to the WAL buffer. But the memcpy in StartupXLOG() copied a full 8kB block, not just the valid part, i.e. it copied from beyond the end of the buffer. The invalid part was cleared immediately afterwards, so as long as the memory was allocated and didn't segfault, it didn't do any harm, but it can definitely segfault. Discussion: https://www.postgresql.org/message-id/efc12e32-5af2-3485-5b1d-5af9f707491a@iki.fi
Diffstat (limited to 'src/backend/access/gist')
0 files changed, 0 insertions, 0 deletions