Re: [BUG] CRASH: ECPGprepared_statement() and ECPGdeallocate_all() when connection is NULL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [BUG] CRASH: ECPGprepared_statement() and ECPGdeallocate_all() when connection is NULL
Дата
Msg-id 3007317.1765210195@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [BUG] CRASH: ECPGprepared_statement() and ECPGdeallocate_all() when connection is NULL  (Shruthi Gowda <gowdashru@gmail.com>)
Список pgsql-hackers
Shruthi Gowda <gowdashru@gmail.com> writes:
> The ECPG application crashes with a segmentation fault when calling
> specific deallocation or prepared statement functions without an
> established database connection. This is caused by a missing NULL check on
> the connection handle before attempting to access it.

Hmm ... poking around, I see several other places that aren't checking
the result of ecpg_get_connection.  Shouldn't we tighten them all?

            regards, tom lane



В списке pgsql-hackers по дате отправления: