Re: [PATCH] Fix bug when calling strncmp in check_authmethod_valid - Mailing list pgsql-hackers

From Richard Guo
Subject Re: [PATCH] Fix bug when calling strncmp in check_authmethod_valid
Date
Msg-id CAMbWs4-EyvHYyL1xa+pxUDVEu+835gZ0y=vs7NdqGxbGMwRqTA@mail.gmail.com
Whole thread Raw
In response to [PATCH] Fix bug when calling strncmp in check_authmethod_valid  ("Jingxian Li" <aqktjcm@qq.com>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: DROP OWNED BY fails to clean out pg_init_privs grants
Next
From: "David G. Johnston"
Date:
Subject: Re: DROP OWNED BY fails to clean out pg_init_privs grants