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 <[email protected]> Discussion: https://postgr.es/m/[email protected] 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(-)
