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

Поиск
Список
Период
Сортировка
От Michael Meskes
Тема pgsql: This routine was calling ecpg_alloc to allocate to memory but di
Дата
Msg-id E1YJNBy-0003DF-Va@gemulon.postgresql.org
обсуждение исходный текст
Ответы Re: pgsql: This routine was calling ecpg_alloc to allocate to memory but di  (Michael Paquier <michael.paquier@gmail.com>)
Список 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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5ee5bc387319b9ac33083bacebd3ab7046666328

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 по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Use a separate memory context for GIN scan keys.
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Report WAL flush, not insert, position in replication IDENTIFY_S