pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Don't leak malloc'd error string in libpqrcv_check_conninfo(). 5+ messages / 1 participants [nested] [flat]
* pgsql: Don't leak malloc'd error string in libpqrcv_check_conninfo(). @ 2021-03-19 02:23 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2021-03-19 02:23 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Don't leak malloc'd error string in libpqrcv_check_conninfo(). We leaked the error report from PQconninfoParse, when there was one. It seems unlikely that real usage patterns would repeat the failure often enough to create serious bloat, but let's back-patch anyway to keep the code similar in all branches. Found via valgrind testing. Back-patch to v10 where this code was added. Discussion: https://postgr.es/m/3816764.1616104288@sss.pgh.pa.us Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/20f11ca0dbc2bd99de9c4866eec6722b8202e422 Modified Files -------------- src/backend/replication/libpqwalreceiver/libpqwalreceiver.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Don't leak malloc'd error string in libpqrcv_check_conninfo(). @ 2021-03-19 02:23 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2021-03-19 02:23 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Don't leak malloc'd error string in libpqrcv_check_conninfo(). We leaked the error report from PQconninfoParse, when there was one. It seems unlikely that real usage patterns would repeat the failure often enough to create serious bloat, but let's back-patch anyway to keep the code similar in all branches. Found via valgrind testing. Back-patch to v10 where this code was added. Discussion: https://postgr.es/m/3816764.1616104288@sss.pgh.pa.us Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ba986b7bc5cf2cc9f586e553f78ab9b2b199fac2 Modified Files -------------- src/backend/replication/libpqwalreceiver/libpqwalreceiver.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Don't leak malloc'd error string in libpqrcv_check_conninfo(). @ 2021-03-19 02:23 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2021-03-19 02:23 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Don't leak malloc'd error string in libpqrcv_check_conninfo(). We leaked the error report from PQconninfoParse, when there was one. It seems unlikely that real usage patterns would repeat the failure often enough to create serious bloat, but let's back-patch anyway to keep the code similar in all branches. Found via valgrind testing. Back-patch to v10 where this code was added. Discussion: https://postgr.es/m/3816764.1616104288@sss.pgh.pa.us Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/4eca51d4464133e6f4cd923355c6dd971d9c27d3 Modified Files -------------- src/backend/replication/libpqwalreceiver/libpqwalreceiver.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Don't leak malloc'd error string in libpqrcv_check_conninfo(). @ 2021-03-19 02:23 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2021-03-19 02:23 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Don't leak malloc'd error string in libpqrcv_check_conninfo(). We leaked the error report from PQconninfoParse, when there was one. It seems unlikely that real usage patterns would repeat the failure often enough to create serious bloat, but let's back-patch anyway to keep the code similar in all branches. Found via valgrind testing. Back-patch to v10 where this code was added. Discussion: https://postgr.es/m/3816764.1616104288@sss.pgh.pa.us Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/9bacdf9f536a3720976ae258238cb46c691ce9b2 Modified Files -------------- src/backend/replication/libpqwalreceiver/libpqwalreceiver.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Don't leak malloc'd error string in libpqrcv_check_conninfo(). @ 2021-03-19 02:23 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2021-03-19 02:23 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Don't leak malloc'd error string in libpqrcv_check_conninfo(). We leaked the error report from PQconninfoParse, when there was one. It seems unlikely that real usage patterns would repeat the failure often enough to create serious bloat, but let's back-patch anyway to keep the code similar in all branches. Found via valgrind testing. Back-patch to v10 where this code was added. Discussion: https://postgr.es/m/3816764.1616104288@sss.pgh.pa.us Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/12354839e874c1f6ebc5e1e5ebc1c6b5519eeea0 Modified Files -------------- src/backend/replication/libpqwalreceiver/libpqwalreceiver.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2021-03-19 02:23 UTC | newest] Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-03-19 02:23 pgsql: Don't leak malloc'd error string in libpqrcv_check_conninfo(). Tom Lane <tgl@sss.pgh.pa.us> 2021-03-19 02:23 pgsql: Don't leak malloc'd error string in libpqrcv_check_conninfo(). Tom Lane <tgl@sss.pgh.pa.us> 2021-03-19 02:23 pgsql: Don't leak malloc'd error string in libpqrcv_check_conninfo(). Tom Lane <tgl@sss.pgh.pa.us> 2021-03-19 02:23 pgsql: Don't leak malloc'd error string in libpqrcv_check_conninfo(). Tom Lane <tgl@sss.pgh.pa.us> 2021-03-19 02:23 pgsql: Don't leak malloc'd error string in libpqrcv_check_conninfo(). 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