Fix for bug in ldapServiceLookup in libpq
Albe Laurenz <laurenz.albe@wien.gv.at>
From: "Albe Laurenz" <laurenz.albe@wien.gv.at>
To: "pgsql-hackers" <pgsql-hackers@postgresql.org>
Date: 2011-05-11T14:40:49Z
Lists: pgsql-hackers
Attachments
- ldapServiceLookup.patch (application/octet-stream) patch
I have found a small but annoying bug in libpq where connection parameters are resolved via LDAP. There is a write past the end of a malloc'ed string which causes memory corruption. The code and the bug are originally by me :^( The attached patch fixes the problem in HEAD. This should be backpatched to 8.2 where the code was introduced. Yours, Laurenz Albe