Re: Use after free? in fe-connect.c:closePGconn

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Use after free? in fe-connect.c:closePGconn
Дата
Msg-id 15516.1466031953@sss.pgh.pa.us
обсуждение
Ответ на Use after free? in fe-connect.c:closePGconn  (Ranier VF <ranier_gyn@hotmail.com>)
Ответы Re: Use after free? in fe-connect.c:closePGconn
Список pgsql-bugs
Ranier VF <ranier_gyn@hotmail.com> writes:
> In  [d:\pginstaller.auto\postgres.windows\src\interfaces\libpq\fe-connect.c,
> closePGconn(PGconn *conn):
> Does not check if conn is NULL.

All the callers do, so I don't entirely see your point.

The stack traces you show look to me like the fault is probably in
the caller, ie, calling PQfinish twice on the same "conn".

            regards, tom lane

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