Re: Don't pass NULL pointer to strcmp().

Поиск
Список
Период
Сортировка
От Junwang Zhao
Тема Re: Don't pass NULL pointer to strcmp().
Дата
Msg-id CAEG8a3KtVY=ahY4zVX6AfqMV32Ri1HBhSMGZ1p-W_w5bUGMQ+Q@mail.gmail.com
обсуждение исходный текст
Ответ на Don't pass NULL pointer to strcmp().  (Xing Guo <higuoxing@gmail.com>)
Ответы Re: Don't pass NULL pointer to strcmp().
Список pgsql-hackers
On Wed, Nov 1, 2023 at 5:25 PM Xing Guo <higuoxing@gmail.com> wrote:
>
> Hi hackers,
>
> I found that there's a nullable pointer being passed to strcmp() and
> can make the server crash. It can be reproduced on the latest master
> branch by crafting an extension[1]. Patch for fixing it is attatched.
>
> [1] https://github.com/higuoxing/guc_crash/tree/pg
>

Can we set a string guc to NULL? If not, `*lconf->variable == NULL` would
be unnecessary.

> --
> Best Regards,
> Xing



--
Regards
Junwang Zhao



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