Re: Lack of Sanity Checking in file 'pctcl.c' for PostgreSQL 9.4.x
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Lack of Sanity Checking in file 'pctcl.c' for PostgreSQL 9.4.x |
| Дата | |
| Msg-id | 4457.1434166911@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Lack of Sanity Checking in file 'pctcl.c' for PostgreSQL 9.4.x (Alvaro Herrera <alvherre@2ndquadrant.com>) |
| Ответы |
Re: Lack of Sanity Checking in file 'pctcl.c' for PostgreSQL 9.4.x
|
| Список | pgsql-bugs |
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Michael Paquier wrote:
>> By the way, your patch does not compile properly and is not in-line
>> with the project's code format. See the updated patch attached ;)
> ... or the conventions for allocating memory. Why not just use palloc()?
That's hardly the fault of the proposed patch. But yeah, it seems like
much the best fix here is to get rid of the malloc (and strdup) calls in
this code in favor of using the palloc infrastructure. Even the calls
that *do* have manual failure checks are not compliant with our usual
coding standards.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера