pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Avoid non-constant format string argument to fprintf().
Date: Tue, 18 Aug 2020 10:26:31 +0000
Message-ID: <E1k7yp5-0007cw-Ln@gemulon.postgresql.org> (raw)

Avoid non-constant format string argument to fprintf().

As Tom Lane pointed out, it could defeat the compiler's printf() format
string verification.

Backpatch to v12, like that patch that introduced it.

Discussion: https://www.postgresql.org/message-id/1069283.1597672779%40sss.pgh.pa.us

Branch
------
REL_13_STABLE

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

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



view thread (3+ messages)  latest in thread

Message-ID: <E1k7yp5-0007cw-Ln@gemulon.postgresql.org>
Permalink:  ../E1k7yp5-0007cw-Ln@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1k7yp5-0007cw-Ln@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Avoid non-constant format string argument to fprintf().
  In-Reply-To: <E1k7yp5-0007cw-Ln@gemulon.postgresql.org>
  References: <E1k7yp5-0007cw-Ln@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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