pgsql: Fix potential pointer overflow in xlogreader.c.

2023-12-07 Thread Thomas Munro
Fix potential pointer overflow in xlogreader.c. While checking if a record could fit in the circular WAL decoding buffer, the coding from commit 3f1ce973 used arithmetic that could overflow. 64 bit systems were unaffected for various technical reasons, which probably explains the lack of problem

pgsql: Fix potential pointer overflow in xlogreader.c.

2023-12-07 Thread Thomas Munro
Fix potential pointer overflow in xlogreader.c. While checking if a record could fit in the circular WAL decoding buffer, the coding from commit 3f1ce973 used arithmetic that could overflow. 64 bit systems were unaffected for various technical reasons, which probably explains the lack of problem

pgsql: Fix potential pointer overflow in xlogreader.c.

2023-12-07 Thread Thomas Munro
Fix potential pointer overflow in xlogreader.c. While checking if a record could fit in the circular WAL decoding buffer, the coding from commit 3f1ce973 used arithmetic that could overflow. 64 bit systems were unaffected for various technical reasons, which probably explains the lack of problem