pgsql: ecpg: Add missing NULL check in ecpg_store_input() following OOM
Started by Michael Paquier3 months ago1 messagescommitters
Stepping through
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.gladyshev@linux.dev>
Discussion: /messages/by-id/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(-)