pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Avoid multiple free_struct_lconv() calls on same data. 6+ messages / 1 participants [nested] [flat]
* pgsql: Avoid multiple free_struct_lconv() calls on same data. @ 2016-02-29 04:40 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-02-29 04:40 UTC (permalink / raw) To: pgsql-committers Avoid multiple free_struct_lconv() calls on same data. A failure partway through PGLC_localeconv() led to a situation where the next call would call free_struct_lconv() a second time, leading to free() on already-freed strings, typically leading to a core dump. Add a flag to remember whether we need to do that. Per report from Thom Brown. His example case only provokes the failure as far back as 9.4, but nonetheless this code is obviously broken, so back-patch to all supported branches. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/907e4dd2b104bdcb4af042065a92fcd73d5790ec Modified Files -------------- src/backend/utils/adt/pg_locale.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Avoid multiple free_struct_lconv() calls on same data. @ 2016-02-29 04:40 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-02-29 04:40 UTC (permalink / raw) To: pgsql-committers Avoid multiple free_struct_lconv() calls on same data. A failure partway through PGLC_localeconv() led to a situation where the next call would call free_struct_lconv() a second time, leading to free() on already-freed strings, typically leading to a core dump. Add a flag to remember whether we need to do that. Per report from Thom Brown. His example case only provokes the failure as far back as 9.4, but nonetheless this code is obviously broken, so back-patch to all supported branches. Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/2d43c45e9d84d711a616d2fca7eb1b040ac5ddaf Modified Files -------------- src/backend/utils/adt/pg_locale.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Avoid multiple free_struct_lconv() calls on same data. @ 2016-02-29 04:40 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-02-29 04:40 UTC (permalink / raw) To: pgsql-committers Avoid multiple free_struct_lconv() calls on same data. A failure partway through PGLC_localeconv() led to a situation where the next call would call free_struct_lconv() a second time, leading to free() on already-freed strings, typically leading to a core dump. Add a flag to remember whether we need to do that. Per report from Thom Brown. His example case only provokes the failure as far back as 9.4, but nonetheless this code is obviously broken, so back-patch to all supported branches. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/80c925c7b4efcd80a8c648ca94ba1fabbd2863ae Modified Files -------------- src/backend/utils/adt/pg_locale.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Avoid multiple free_struct_lconv() calls on same data. @ 2016-02-29 04:40 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-02-29 04:40 UTC (permalink / raw) To: pgsql-committers Avoid multiple free_struct_lconv() calls on same data. A failure partway through PGLC_localeconv() led to a situation where the next call would call free_struct_lconv() a second time, leading to free() on already-freed strings, typically leading to a core dump. Add a flag to remember whether we need to do that. Per report from Thom Brown. His example case only provokes the failure as far back as 9.4, but nonetheless this code is obviously broken, so back-patch to all supported branches. Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/0c4457de8b8a6aa715bdfe94ecfa8ee3d48e2827 Modified Files -------------- src/backend/utils/adt/pg_locale.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Avoid multiple free_struct_lconv() calls on same data. @ 2016-02-29 04:40 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-02-29 04:40 UTC (permalink / raw) To: pgsql-committers Avoid multiple free_struct_lconv() calls on same data. A failure partway through PGLC_localeconv() led to a situation where the next call would call free_struct_lconv() a second time, leading to free() on already-freed strings, typically leading to a core dump. Add a flag to remember whether we need to do that. Per report from Thom Brown. His example case only provokes the failure as far back as 9.4, but nonetheless this code is obviously broken, so back-patch to all supported branches. Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/47792639c3e320e8596205cb8a404bac1518e1de Modified Files -------------- src/backend/utils/adt/pg_locale.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Avoid multiple free_struct_lconv() calls on same data. @ 2016-02-29 04:40 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-02-29 04:40 UTC (permalink / raw) To: pgsql-committers Avoid multiple free_struct_lconv() calls on same data. A failure partway through PGLC_localeconv() led to a situation where the next call would call free_struct_lconv() a second time, leading to free() on already-freed strings, typically leading to a core dump. Add a flag to remember whether we need to do that. Per report from Thom Brown. His example case only provokes the failure as far back as 9.4, but nonetheless this code is obviously broken, so back-patch to all supported branches. Branch ------ REL9_1_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/7d6c58aa1114a6482722c125d44b4eb15fe5df18 Modified Files -------------- src/backend/utils/adt/pg_locale.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2016-02-29 04:40 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2016-02-29 04:40 pgsql: Avoid multiple free_struct_lconv() calls on same data. Tom Lane <tgl@sss.pgh.pa.us> 2016-02-29 04:40 pgsql: Avoid multiple free_struct_lconv() calls on same data. Tom Lane <tgl@sss.pgh.pa.us> 2016-02-29 04:40 pgsql: Avoid multiple free_struct_lconv() calls on same data. Tom Lane <tgl@sss.pgh.pa.us> 2016-02-29 04:40 pgsql: Avoid multiple free_struct_lconv() calls on same data. Tom Lane <tgl@sss.pgh.pa.us> 2016-02-29 04:40 pgsql: Avoid multiple free_struct_lconv() calls on same data. Tom Lane <tgl@sss.pgh.pa.us> 2016-02-29 04:40 pgsql: Avoid multiple free_struct_lconv() calls on same data. 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