This routine was calling ecpg_alloc to allocate to memory but did not
actually check the returned pointer allocated, potentially NULL which
could be the result of a malloc call.
Issue noted by Coverity, fixed by Michael Paquier <michael@otacoo.com>
Branch
------
REL9_4_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/157d40640cdd885b72f27db358ba66d12feaec7d
Modified Files
--------------
src/interfaces/ecpg/ecpglib/descriptor.c | 6 ++----
src/interfaces/ecpg/ecpglib/execute.c | 6 ++----
src/interfaces/ecpg/ecpglib/extern.h | 4 ++--
src/interfaces/ecpg/ecpglib/memory.c | 22 +++++++++++++++++++++-
4 files changed, 27 insertions(+), 11 deletions(-)
Есть вопросы? Напишите нам!
Соглашаюсь с условиями обработки персональных данных
✖
By continuing to browse this website, you agree to the use of cookies. Go to Privacy Policy.