Re: sendFileWithContent() does not advance the source pointer

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: Antonin Houska <ah@cybertec.at>, Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org
Date: 2022-12-08T21:53:18Z
Lists: pgsql-hackers
Hi,

On 2022-12-08 20:44:05 +0100, Antonin Houska wrote:
> When checking something else in the base backup code, I've noticed that
> sendFileWithContent() does not advance the 'content' pointer.

Oof. Luckily it looks like that is a relatively recent issue, introduced in
bef47ff85df, which is only in 15.

Greetings,

Andres Freund



Commits

  1. Fix failure to advance content pointer in sendFileWithContent.