From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Avoid non-constant format string argument to fprintf(). |
Date: | 2020-08-18 10:26:31 |
Message-ID: | E1k7yp5-0007cz-MG@gemulon.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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: /message-id/1069283.1597672779%40sss.pgh.pa.us
Branch
------
REL_12_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/aecefffc3f8041c883ab4fb035cf0d5519b5a7ed
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2020-08-18 20:28:05 | Re: pgsql: snapshot scalability: cache snapshots using a xact completion co |
Previous Message | Tom Lane | 2020-08-18 05:21:17 | Re: pgsql: snapshot scalability: cache snapshots using a xact completion co |