pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Use snprintf not sprintf in pg_waldump's timestamptz_to_str. 6+ messages / 1 participants [nested] [flat]
* pgsql: Use snprintf not sprintf in pg_waldump's timestamptz_to_str. @ 2018-06-16 18:59 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2018-06-16 18:59 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Use snprintf not sprintf in pg_waldump's timestamptz_to_str. This could only cause an issue if strftime returned a ridiculously long timezone name, which seems unlikely; and it wouldn't qualify as a security problem even then, since pg_waldump (nee pg_xlogdump) is a debug tool not part of the server. But gcc 8 has started issuing warnings about it, so let's use snprintf and be safe. Backpatch to 9.3 where this code was added. Discussion: https://postgr.es/m/21789.1529170195@sss.pgh.pa.us Branch ------ REL9_3_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/3243cbc085b8cd54cf12c323da3b5c8298ed5d69 Modified Files -------------- contrib/pg_xlogdump/compat.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Use snprintf not sprintf in pg_waldump's timestamptz_to_str. @ 2018-06-16 18:59 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2018-06-16 18:59 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Use snprintf not sprintf in pg_waldump's timestamptz_to_str. This could only cause an issue if strftime returned a ridiculously long timezone name, which seems unlikely; and it wouldn't qualify as a security problem even then, since pg_waldump (nee pg_xlogdump) is a debug tool not part of the server. But gcc 8 has started issuing warnings about it, so let's use snprintf and be safe. Backpatch to 9.3 where this code was added. Discussion: https://postgr.es/m/21789.1529170195@sss.pgh.pa.us Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/8870e2978fc5db5741229f5cddc7bcc24ee52000 Modified Files -------------- src/bin/pg_xlogdump/compat.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Use snprintf not sprintf in pg_waldump's timestamptz_to_str. @ 2018-06-16 18:59 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2018-06-16 18:59 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Use snprintf not sprintf in pg_waldump's timestamptz_to_str. This could only cause an issue if strftime returned a ridiculously long timezone name, which seems unlikely; and it wouldn't qualify as a security problem even then, since pg_waldump (nee pg_xlogdump) is a debug tool not part of the server. But gcc 8 has started issuing warnings about it, so let's use snprintf and be safe. Backpatch to 9.3 where this code was added. Discussion: https://postgr.es/m/21789.1529170195@sss.pgh.pa.us Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/5d923eb29bb643e311680bab329363d8a9a9768a Modified Files -------------- src/bin/pg_waldump/compat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Use snprintf not sprintf in pg_waldump's timestamptz_to_str. @ 2018-06-16 18:59 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2018-06-16 18:59 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Use snprintf not sprintf in pg_waldump's timestamptz_to_str. This could only cause an issue if strftime returned a ridiculously long timezone name, which seems unlikely; and it wouldn't qualify as a security problem even then, since pg_waldump (nee pg_xlogdump) is a debug tool not part of the server. But gcc 8 has started issuing warnings about it, so let's use snprintf and be safe. Backpatch to 9.3 where this code was added. Discussion: https://postgr.es/m/21789.1529170195@sss.pgh.pa.us Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/f3be5d3e7891ef6886489cb0c9962d52c5983c70 Modified Files -------------- src/bin/pg_xlogdump/compat.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Use snprintf not sprintf in pg_waldump's timestamptz_to_str. @ 2018-06-16 18:59 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2018-06-16 18:59 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Use snprintf not sprintf in pg_waldump's timestamptz_to_str. This could only cause an issue if strftime returned a ridiculously long timezone name, which seems unlikely; and it wouldn't qualify as a security problem even then, since pg_waldump (nee pg_xlogdump) is a debug tool not part of the server. But gcc 8 has started issuing warnings about it, so let's use snprintf and be safe. Backpatch to 9.3 where this code was added. Discussion: https://postgr.es/m/21789.1529170195@sss.pgh.pa.us Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/fd079dd0915a2005da2fbfd75fda1cc3611f3a2f Modified Files -------------- contrib/pg_xlogdump/compat.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Use snprintf not sprintf in pg_waldump's timestamptz_to_str. @ 2018-06-16 18:59 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2018-06-16 18:59 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Use snprintf not sprintf in pg_waldump's timestamptz_to_str. This could only cause an issue if strftime returned a ridiculously long timezone name, which seems unlikely; and it wouldn't qualify as a security problem even then, since pg_waldump (nee pg_xlogdump) is a debug tool not part of the server. But gcc 8 has started issuing warnings about it, so let's use snprintf and be safe. Backpatch to 9.3 where this code was added. Discussion: https://postgr.es/m/21789.1529170195@sss.pgh.pa.us Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/18933261589c9547d5c517cdc05f25362cce412a Modified Files -------------- src/bin/pg_waldump/compat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2018-06-16 18:59 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-06-16 18:59 pgsql: Use snprintf not sprintf in pg_waldump's timestamptz_to_str. Tom Lane <tgl@sss.pgh.pa.us> 2018-06-16 18:59 pgsql: Use snprintf not sprintf in pg_waldump's timestamptz_to_str. Tom Lane <tgl@sss.pgh.pa.us> 2018-06-16 18:59 pgsql: Use snprintf not sprintf in pg_waldump's timestamptz_to_str. Tom Lane <tgl@sss.pgh.pa.us> 2018-06-16 18:59 pgsql: Use snprintf not sprintf in pg_waldump's timestamptz_to_str. Tom Lane <tgl@sss.pgh.pa.us> 2018-06-16 18:59 pgsql: Use snprintf not sprintf in pg_waldump's timestamptz_to_str. Tom Lane <tgl@sss.pgh.pa.us> 2018-06-16 18:59 pgsql: Use snprintf not sprintf in pg_waldump's timestamptz_to_str. Tom Lane <tgl@sss.pgh.pa.us>
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