| От | Tom Lane |
|---|---|
| Тема | Re: Check for failed memory allocations in libpq |
| Дата | |
| Msg-id | 1206.1059660325@sss.pgh.pa.us обсуждение |
| Ответ на | Check for failed memory allocations in libpq (Dave Allen <daveallen@acm.org>) |
| Ответы |
Re: Check for failed memory allocations in libpq
|
| Список | pgsql-patches |
Dave Allen <daveallen@acm.org> writes:
> Attached is a patch (against 7.3.4) to check the return values of some
> calls (malloc, realloc, etc.) for failed memory allocations in libpq.
You sure you aren't just trading one misbehavior for another? The
change in PQmakeEmptyPGresult, for example, just moves the core dump
somewhere else, unless you find reasonable fallbacks for *all* its
callers (including applications you don't have the source code for,
but in any case including every one of the calls in libpq).
regards, tom lane
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера