pgsql: This routine was calling ecpg_alloc to allocate to memory but di - Mailing list pgsql-committers

From Michael Meskes
Subject pgsql: This routine was calling ecpg_alloc to allocate to memory but di
Date
Msg-id E1ZPUg4-0005Kc-DR@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/e0ca86aa98de9c60815d3717b92b62a9f2c0c07d

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(-)


pgsql-committers by date:

Previous
From: Michael Meskes
Date:
Subject: pgsql: This routine was calling ecpg_alloc to allocate to memory but di
Next
From: Michael Meskes
Date:
Subject: pgsql: This routine was calling ecpg_alloc to allocate to memory but di