[PATCH] Fix bug when calling strncmp in check_authmethod_valid
Jingxian Li <aqktjcm@qq.com>
From: "Jingxian Li" <aqktjcm@qq.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2024-04-30T02:41:39Z
Lists: pgsql-hackers
Attachments
- v1-0001-Fix-bug-when-calling-strncmp-in-check_authmethod_valid.patch (application/octet-stream) patch v1-0001
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.
Commits
-
Remove auth-options support from initdb
- 83ae824c87a5 17.0 landed
-
Make two-phase tests of ECPG and main suite more concurrent-proof
- 7e61e4cc7cfc 17.0 landed
-
initdb: Add options --auth-local and --auth-host
- 8a02339e9ba3 9.2.0 cited