Fix for bug in ldapServiceLookup in libpq - Mailing list pgsql-hackers

From Albe Laurenz
Subject Fix for bug in ldapServiceLookup in libpq
Date
Msg-id D960CB61B694CF459DCFB4B0128514C20668FA0F@exadv11.host.magwien.gv.at
Whole thread Raw
Responses Re: Fix for bug in ldapServiceLookup in libpq  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Fix for bug in ldapServiceLookup in libpq  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: the big picture for index-only scans
Next
From: Bruce Momjian
Date:
Subject: Re: the big picture for index-only scans