pg_rewind: Fix buffer size passed when building WAL file name

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: pg_rewind: Fix buffer size passed when building WAL file name
Date: 2026-11-25 17:04:23
Message-ID: e0d69580-4001-4c43-9c71-284d5354e9f1@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

In pg_rewind findLastCheckpoint() there is a buffer size mismatch when
composing a WAL file name. You can't actually overflow the buffer, so
it's harmless, but when playing with compiler annotations, I see this
getting flagged, because it's rather obviously incorrect on some level,
so I think it's worth fixing. See attached patch for details.

Attachment Content-Type Size
0001-pg_rewind-Fix-buffer-size-passed-when-building-WAL-f.patch text/plain 1.8 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2026-11-25 17:33:05 Re: Reducing output size of nodeToString
Previous Message Nathan Bossart 2026-11-25 17:01:40 Re: PANIC at shutdown when a reload changes full_page_writes