aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistxlog.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-05-12 11:56:38 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-05-12 11:57:15 -0400
commit891c23ff6ecefe871fb0cff1a6a1dc37cf7d25bf (patch)
treecb52c67591459fc13513ec9e8fe90e5e32856405 /src/backend/access/gist/gistxlog.c
parentf3f0f37068e06d01e88abbf3ed596664b139f7e2 (diff)
downloadpostgresql-891c23ff6ecefe871fb0cff1a6a1dc37cf7d25bf.tar.gz
postgresql-891c23ff6ecefe871fb0cff1a6a1dc37cf7d25bf.zip
Fix write-past-buffer-end in ldapServiceLookup().
The code to assemble ldap_get_values_len's output into a single string wrote the terminating null one byte past where it should. Fix that, and make some other cosmetic adjustments to make the code a trifle more readable and more in line with usual Postgres coding style. Also, free the "result" string when done with it, to avoid a permanent memory leak. Bug report and patch by Albe Laurenz, cosmetic adjustments by me.
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions