diff options
| author | Heikki Linnakangas | 2025-12-15 11:30:17 +0000 |
|---|---|---|
| committer | Heikki Linnakangas | 2025-12-15 11:30:17 +0000 |
| commit | ecb553ae8211e3d135e0c9d42b90cc22be51d27c (patch) | |
| tree | 41930d6a908fabd483d7593ae43bcb0fe2ff6faf /src/tools | |
| parent | 77038d6d0b49622e719fc00ed46db0ab47d2b747 (diff) | |
In the server, check explicitly for multixids with zero members. We
used to have an assertion for it, but commit d4b7bde418 replaced it
with more extensive runtime checks, but it missed the original case of
zero members.
In the upgrade code, a negative length never makes sense, so better
check for it explicitly. Commit d4b7bde418 added a similar sanity
check to the corresponding server code on master, and in backbranches,
the 'length' is passed to palloc which would fail with "invalid memory
alloc request size" error. Clarify the comments on what kind of
invalid entries are tolerated by the upgrade code and which ones are
reported as fatal errors.
Coverity complained about 'length' in the upgrade code being
tainted. That's bogus because we trust the data on disk at least to
some extent, but hopefully this will silence the complaint. If not,
I'll dismiss it manually.
Discussion: https://www.postgresql.org/message-id/7b505284-c6e9-4c80-a7ee-816493170abc@iki.fi
Diffstat (limited to 'src/tools')
0 files changed, 0 insertions, 0 deletions
