Re: Missing NULL check after calling ecpg_strdup

Поиск
Список
Период
Сортировка
От Aleksander Alekseev
Тема Re: Missing NULL check after calling ecpg_strdup
Дата
Msg-id CAJ7c6TNeG-e0BJtgAWT4eU0-tuQ7XZXcPzUe-GsiLuaiXK5tcw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Missing NULL check after calling ecpg_strdup  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: Missing NULL check after calling ecpg_strdup
Список pgsql-hackers
Hi Michael,

Thanks for all your great feedback.

> Or you could keep the "lineno" and the error generated in memory.c as
> this gives enough details about the location where the problem
> happens.  We are going to need the extra "alloc_failed".
>
> [...]
>
> Hmm.  But both are related and the same problem, no?  This is touching
> the same code paths..
>
> [...]
>
> Nope, we could keep this shortcut in ecpg_strdup() as long as there is
> an extra field to track if an error has happened.

OK, patch 0002 implements this idea with minimal changes to the existing logic.

Вложения

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