pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix off_t overflow in pg_basebackup on Windows.
6+ messages / 1 participants
[nested] [flat]

* pgsql: Fix off_t overflow in pg_basebackup on Windows.
@ 2025-01-09 03:06 Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Thomas Munro @ 2025-01-09 03:06 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix off_t overflow in pg_basebackup on Windows.

walmethods.c used off_t to navigate around a pg_wal.tar file that could
exceed 2GB, which doesn't work on Windows and would fail with misleading
errors.  Use pgoff_t instead.

Back-patch to all supported branches.

Author: Davinder Singh <davinder.singh@enterprisedb.com>
Reported-by: Jakub Wartak <jakub.wartak@enterprisedb.com>
Discussion: https://postgr.es/m/CAKZiRmyM4YnokK6Oenw5JKwAQ3rhP0YTz2T-tiw5dAQjGRXE3Q%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/970b97eeb8f036e534abe183fd41604671f7674d

Modified Files
--------------
src/bin/pg_basebackup/receivelog.c | 2 +-
src/bin/pg_basebackup/walmethods.c | 2 +-
src/bin/pg_basebackup/walmethods.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix off_t overflow in pg_basebackup on Windows.
@ 2025-01-09 03:06 Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Thomas Munro @ 2025-01-09 03:06 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix off_t overflow in pg_basebackup on Windows.

walmethods.c used off_t to navigate around a pg_wal.tar file that could
exceed 2GB, which doesn't work on Windows and would fail with misleading
errors.  Use pgoff_t instead.

Back-patch to all supported branches.

Author: Davinder Singh <davinder.singh@enterprisedb.com>
Reported-by: Jakub Wartak <jakub.wartak@enterprisedb.com>
Discussion: https://postgr.es/m/CAKZiRmyM4YnokK6Oenw5JKwAQ3rhP0YTz2T-tiw5dAQjGRXE3Q%40mail.gmail.com

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/faee3185aafa3a6055c2558b6fe7b5deb64d5460

Modified Files
--------------
src/bin/pg_basebackup/receivelog.c | 2 +-
src/bin/pg_basebackup/walmethods.c | 2 +-
src/bin/pg_basebackup/walmethods.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix off_t overflow in pg_basebackup on Windows.
@ 2025-01-09 03:06 Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Thomas Munro @ 2025-01-09 03:06 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix off_t overflow in pg_basebackup on Windows.

walmethods.c used off_t to navigate around a pg_wal.tar file that could
exceed 2GB, which doesn't work on Windows and would fail with misleading
errors.  Use pgoff_t instead.

Back-patch to all supported branches.

Author: Davinder Singh <davinder.singh@enterprisedb.com>
Reported-by: Jakub Wartak <jakub.wartak@enterprisedb.com>
Discussion: https://postgr.es/m/CAKZiRmyM4YnokK6Oenw5JKwAQ3rhP0YTz2T-tiw5dAQjGRXE3Q%40mail.gmail.com

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/be7489662e7759de7a8338d3e65cd6a22dfa4976

Modified Files
--------------
src/bin/pg_basebackup/receivelog.c | 2 +-
src/bin/pg_basebackup/walmethods.c | 2 +-
src/bin/pg_basebackup/walmethods.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix off_t overflow in pg_basebackup on Windows.
@ 2025-01-09 03:06 Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Thomas Munro @ 2025-01-09 03:06 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix off_t overflow in pg_basebackup on Windows.

walmethods.c used off_t to navigate around a pg_wal.tar file that could
exceed 2GB, which doesn't work on Windows and would fail with misleading
errors.  Use pgoff_t instead.

Back-patch to all supported branches.

Author: Davinder Singh <davinder.singh@enterprisedb.com>
Reported-by: Jakub Wartak <jakub.wartak@enterprisedb.com>
Discussion: https://postgr.es/m/CAKZiRmyM4YnokK6Oenw5JKwAQ3rhP0YTz2T-tiw5dAQjGRXE3Q%40mail.gmail.com

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6b6901a26f5683d30e6a3192d5b3a7da1dba69c3

Modified Files
--------------
src/bin/pg_basebackup/receivelog.c |  2 +-
src/bin/pg_basebackup/walmethods.c | 10 +++++-----
src/bin/pg_basebackup/walmethods.h |  2 +-
3 files changed, 7 insertions(+), 7 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix off_t overflow in pg_basebackup on Windows.
@ 2025-01-09 03:07 Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Thomas Munro @ 2025-01-09 03:07 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix off_t overflow in pg_basebackup on Windows.

walmethods.c used off_t to navigate around a pg_wal.tar file that could
exceed 2GB, which doesn't work on Windows and would fail with misleading
errors.  Use pgoff_t instead.

Back-patch to all supported branches.

Author: Davinder Singh <davinder.singh@enterprisedb.com>
Reported-by: Jakub Wartak <jakub.wartak@enterprisedb.com>
Discussion: https://postgr.es/m/CAKZiRmyM4YnokK6Oenw5JKwAQ3rhP0YTz2T-tiw5dAQjGRXE3Q%40mail.gmail.com

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/8f40d46126a04105ff0aa8353ec62c3c7d31af60

Modified Files
--------------
src/bin/pg_basebackup/receivelog.c |  2 +-
src/bin/pg_basebackup/walmethods.c | 10 +++++-----
src/bin/pg_basebackup/walmethods.h |  2 +-
3 files changed, 7 insertions(+), 7 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix off_t overflow in pg_basebackup on Windows.
@ 2025-01-09 03:07 Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Thomas Munro @ 2025-01-09 03:07 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix off_t overflow in pg_basebackup on Windows.

walmethods.c used off_t to navigate around a pg_wal.tar file that could
exceed 2GB, which doesn't work on Windows and would fail with misleading
errors.  Use pgoff_t instead.

Back-patch to all supported branches.

Author: Davinder Singh <davinder.singh@enterprisedb.com>
Reported-by: Jakub Wartak <jakub.wartak@enterprisedb.com>
Discussion: https://postgr.es/m/CAKZiRmyM4YnokK6Oenw5JKwAQ3rhP0YTz2T-tiw5dAQjGRXE3Q%40mail.gmail.com

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/bd0564f61d3708b176c3a02646e203d9c061877a

Modified Files
--------------
src/bin/pg_basebackup/receivelog.c |  2 +-
src/bin/pg_basebackup/walmethods.c | 10 +++++-----
src/bin/pg_basebackup/walmethods.h |  2 +-
3 files changed, 7 insertions(+), 7 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2025-01-09 03:07 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-01-09 03:06 pgsql: Fix off_t overflow in pg_basebackup on Windows. Thomas Munro <tmunro@postgresql.org>
2025-01-09 03:06 pgsql: Fix off_t overflow in pg_basebackup on Windows. Thomas Munro <tmunro@postgresql.org>
2025-01-09 03:06 pgsql: Fix off_t overflow in pg_basebackup on Windows. Thomas Munro <tmunro@postgresql.org>
2025-01-09 03:06 pgsql: Fix off_t overflow in pg_basebackup on Windows. Thomas Munro <tmunro@postgresql.org>
2025-01-09 03:07 pgsql: Fix off_t overflow in pg_basebackup on Windows. Thomas Munro <tmunro@postgresql.org>
2025-01-09 03:07 pgsql: Fix off_t overflow in pg_basebackup on Windows. Thomas Munro <tmunro@postgresql.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox