[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

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

  1. Remove auth-options support from initdb

  2. Make two-phase tests of ECPG and main suite more concurrent-proof

  3. initdb: Add options --auth-local and --auth-host