[PATCH] Fix bug when calling strncmp in check_authmethod_valid

From: "Jingxian Li" <aqktjcm(at)qq(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: [PATCH] Fix bug when calling strncmp in check_authmethod_valid
Date: 2024-04-30 02:41:39
Message-ID: tencent_29731C7C7E6A2F9FB807C3A1DC3D81293C06@qq.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,

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..

With Regards,
Jingxian Li.

Attachment Content-Type Size
v1-0001-Fix-bug-when-calling-strncmp-in-check_authmethod_valid.patch application/octet-stream 942 bytes

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Lakhin 2024-04-30 03:00:00 Re: Add SPLIT PARTITION/MERGE PARTITIONS commands
Previous Message Andy Fan 2024-04-30 02:40:54 Re: using extended statistics to improve join estimates