aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/syscat.source
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2023-08-30 08:03:51 +0900
committerMichael Paquier <michael@paquier.xyz>2023-08-30 08:03:51 +0900
commit5180160c177466a319981f68895a14ba4d4eb234 (patch)
treea4acb3f32bd31d9a9ac04e529c5ce787e94b5fed /src/tutorial/syscat.source
parent0c10240600ad3d7a139737467184777ea822f593 (diff)
downloadpostgresql-5180160c177466a319981f68895a14ba4d4eb234.tar.gz
postgresql-5180160c177466a319981f68895a14ba4d4eb234.zip
Avoid possible overflow with ltsGetFreeBlock() in logtape.c
nFreeBlocks, defined as a long, stores the number of free blocks in a logical tape. ltsGetFreeBlock() has been using an int to store the value of nFreeBlocks, which could lead to overflows on platforms where long and int are not the same size (in short everything except Windows where long is 4 bytes). The problematic intermediate variable is switched to be a long instead of an int. Issue introduced by c02fdc9223015, so backpatch down to 13. Author: Ranier vilela Reviewed-by: Peter Geoghegan, David Rowley Discussion: https://postgr.es/m/CAEudQApLDWCBR_xmwNjGBrDo+f+S4E87x3s7-+hoaKqYdtC4JQ@mail.gmail.com Backpatch-through: 13
Diffstat (limited to 'src/tutorial/syscat.source')
0 files changed, 0 insertions, 0 deletions