diff options
author | Michael Paquier <michael@paquier.xyz> | 2024-02-19 09:05:51 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2024-02-19 09:05:51 +0900 |
commit | 0a9118ccc0eb2e6a31201b2443a2eb1078e34894 (patch) | |
tree | d8554c25fe935cd6700d29f62e86fd2eb7108608 /src/backend/utils/adt/jsonfuncs.c | |
parent | a6c21887a9f0251fa2331ea3ad0dd20b31c4d11d (diff) | |
download | postgresql-0a9118ccc0eb2e6a31201b2443a2eb1078e34894.tar.gz postgresql-0a9118ccc0eb2e6a31201b2443a2eb1078e34894.zip |
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
Diffstat (limited to 'src/backend/utils/adt/jsonfuncs.c')
0 files changed, 0 insertions, 0 deletions