Re: [HACKERS] LDAP URI decoding bugs
От | Peter Eisentraut |
---|---|
Тема | Re: [HACKERS] LDAP URI decoding bugs |
Дата | |
Msg-id | d1b54146-b32d-4079-83e0-98cb4b320d90@2ndquadrant.com обсуждение исходный текст |
Ответ на | Re: [HACKERS] LDAP URI decoding bugs (Michael Paquier <michael.paquier@gmail.com>) |
Ответы |
Re: [HACKERS] LDAP URI decoding bugs
|
Список | pgsql-hackers |
On 11/6/17 23:30, Michael Paquier wrote: > On Fri, Nov 3, 2017 at 12:57 PM, Thomas Munro > <thomas.munro@enterprisedb.com> wrote: >> 1. If you set up a pg_hba.conf with a URL that lacks a base DN or >> hostname, hba.c will segfault on startup when it tries to pstrdup a >> null pointer. Examples: ldapurl="ldap://localhost" and >> ldapurl="ldap://". >> >> 2. If we fail to bind but have no binddn configured, we'll pass NULL >> to ereport (snprint?) for %s, which segfaults on some libc >> implementations. That crash requires more effort to reproduce but you >> can see pretty clearly a few lines above in auth.c that it can be >> NULL. (I'm surprised Coverity didn't complain about that. Maybe it >> can't see this code due to macros.) committed and backpatched -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления: