| From: | Michael Paquier <michael(at)paquier(dot)xyz> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: ecpg: Add missing NULL check in ecpg_store_input() following OOM |
| Date: | 2026-08-20 23:33:33 |
| Message-ID: | E1wxCGK-00000001QGl-0d4P@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
ecpg: Add missing NULL check in ecpg_store_input() following OOM failure
ecpg_store_input() called strlen() directly on the result of
PGTYPESnumeric_to_asc() without checking for a NULL value, state
possible when the function fails due to an out-of-memory failure.
This error is unlikely going to be hit in practice, so no backpatch is
done.
Author: Gladyshev Ilya <ilya(dot)gladyshev(at)linux(dot)dev>
Discussion: https://postgr.es/m/ed5a633b469e685f3a1aef9982cff8e1c50e5883@linux.dev
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/c83f7e727f20a680a5bb874e2e4d699a0f3ee68f
Modified Files
--------------
src/interfaces/ecpg/ecpglib/execute.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Geoghegan | 2026-08-20 23:48:11 | pgsql: Fix snapshot import xmin ProcArrayLock bug. |
| Previous Message | Michael Paquier | 2026-08-20 22:51:52 | pgsql: Improve error for RETURNING with system columns under rules |