pgsql: Avoid possible overflow with ltsGetFreeBlock() in logtape.c

2023-08-29 Thread Michael Paquier
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

pgsql: Avoid possible overflow with ltsGetFreeBlock() in logtape.c

2023-08-29 Thread Michael Paquier
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

pgsql: Avoid possible overflow with ltsGetFreeBlock() in logtape.c

2023-08-29 Thread Michael Paquier
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

pgsql: Avoid possible overflow with ltsGetFreeBlock() in logtape.c

2023-08-29 Thread Michael Paquier
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

pgsql: Avoid possible overflow with ltsGetFreeBlock() in logtape.c

2023-08-29 Thread Michael Paquier
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