postgresql/src/interfaces/ecpg/pgtypeslib
Michael Paquier 0a9118ccc0 ecpg: Fix error handling on OOMs when parsing timestamps
pgtypes_alloc() can return NULL when failing an allocation, which is
something that PGTYPEStimestamp_defmt_asc() has forgotten about when
translating a timestamp for 'D', 'r', 'R' and 'T' as these require a
temporary allocation.

This is unlikely going to be a problem in practice, so no backpatch is
done.

Author: Oleg Tselebrovskiy
Discussion: https://postgr.es/m/bf47888585149f83b276861a1662f7e4@postgrespro.ru
2024-02-19 09:05:51 +09:00
..
.gitignore Build src/common files as a library with -fPIC. 2018-09-28 14:28:19 -04:00
Makefile Update copyright for 2024 2024-01-03 20:49:05 -05:00
common.c Make the order of the header file includes consistent in non-backend modules. 2019-10-25 07:41:52 +05:30
datetime.c Remove useless "return;" lines 2019-11-28 16:48:37 -03:00
dt.h Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
dt_common.c ecpg: Fix error handling on OOMs when parsing timestamps 2024-02-19 09:05:51 +09:00
exports.txt Add PGTYPESchar_free() to avoid cross-module problems on Windows. 2018-06-18 18:33:53 +12:00
interval.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
numeric.c Further reduce warnings with -Wshadow=compatible-local 2022-08-24 12:27:12 +12:00
pgtypeslib_extern.h Harmonize parameter names in ecpg code. 2022-09-22 12:53:20 -07:00
timestamp.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00