pgsql: This routine was calling ecpg_alloc to allocate to memory but di

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: This routine was calling ecpg_alloc to allocate to memory but di
Date: 2015-08-12 11:58:40
Message-ID: E1ZPUg4-0005Kg-DX@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)otacoo(dot)com>

Branch
------
REL9_1_STABLE

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

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

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Meskes 2015-08-12 11:59:37 Re: pgsql: This routine was calling ecpg_alloc to allocate to memory but di
Previous Message Michael Paquier 2015-08-12 06:09:21 Re: pgsql: Optionally don't error out due to preexisting slots in commandli