postgresql/src
Tom Lane 2d43c45e9d 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.
2016-02-28 23:40:04 -05:00
..
backend Avoid multiple free_struct_lconv() calls on same data. 2016-02-28 23:40:04 -05:00
bin Clean the last few TAP suite tmp_check directories. 2016-02-24 23:42:01 -05:00
common pgindent run for 9.5 2015-05-23 21:35:49 -04:00
include Fix typos 2016-02-25 20:50:20 -03:00
interfaces Stamp 9.5.1. 2016-02-08 16:12:28 -05:00
makefiles Link $(WIN32RES) into single-file modules only when PGFILEDESC is set. 2015-08-05 20:45:21 -04:00
pl Make plpython cope with funny characters in function names. 2016-02-16 21:08:15 -05:00
port Stamp 9.5.1. 2016-02-08 16:12:28 -05:00
template AIX: Test the -qlonglong option before use. 2015-07-17 03:01:29 -04:00
test Clean the last few TAP suite tmp_check directories. 2016-02-24 23:42:01 -05:00
timezone Update time zone data files to tzdata release 2016a. 2016-02-05 10:59:21 -05:00
tools MSVC: Clean tmp_check directory of pg_controldata test suite. 2016-02-24 23:41:44 -05:00
tutorial Remove no-longer-required function declarations. 2015-05-24 12:20:23 -04:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Create libpgcommon, and move pg_malloc et al to it 2013-02-12 11:21:05 -03:00
Makefile.global.in Back-patch fixes to make TAP tests work on Windows. 2015-11-17 14:10:24 -05:00
Makefile.shlib AIX: Link TRANSFORM modules with their dependencies. 2015-07-15 21:00:30 -04:00
nls-global.mk Setup error context callback for transaction lock waits 2014-03-19 15:10:36 -03:00
win32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00