]> granicus.if.org Git - postgresql/commit
This routine was calling ecpg_alloc to allocate to memory but did not
authorMichael Meskes <meskes@postgresql.org>
Thu, 5 Feb 2015 14:12:34 +0000 (15:12 +0100)
committerMichael Meskes <meskes@postgresql.org>
Wed, 12 Aug 2015 11:56:38 +0000 (13:56 +0200)
commit157d40640cdd885b72f27db358ba66d12feaec7d
treed1c4970ce8388dbb66229136501cf4bf8f9094f3
parenta35a527f2d6b28f78e9eab42801ec0170ffcb898
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>
src/interfaces/ecpg/ecpglib/descriptor.c
src/interfaces/ecpg/ecpglib/execute.c
src/interfaces/ecpg/ecpglib/extern.h
src/interfaces/ecpg/ecpglib/memory.c