Re: [PATCH] Fix bug when calling strncmp in check_authmethod_valid

Поиск
Список
Период
Сортировка
От Richard Guo
Тема Re: [PATCH] Fix bug when calling strncmp in check_authmethod_valid
Дата
Msg-id CAMbWs4-EyvHYyL1xa+pxUDVEu+835gZ0y=vs7NdqGxbGMwRqTA@mail.gmail.com
обсуждение исходный текст
Ответ на [PATCH] Fix bug when calling strncmp in check_authmethod_valid  ("Jingxian Li" <aqktjcm@qq.com>)
Список pgsql-hackers

On Tue, Apr 30, 2024 at 10:41 AM Jingxian Li <aqktjcm@qq.com> wrote:
Attached is a patch that fixes bug when calling strncmp function, in
which case the third argument (authmethod - strchr(authmethod, ' '))
may be negative, which is not as expected..

Nice catch.  I think you're right from a quick glance.

Thanks
Richard

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: DROP OWNED BY fails to clean out pg_init_privs grants
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: DROP OWNED BY fails to clean out pg_init_privs grants