aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistget.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:26 -0400
commita7d3110638bd9b8951c11913621e86ac79db1a1f (patch)
tree27903cc3c32b2faeca7ac3f1c65e51cd269adc57 /src/backend/access/gist/gistget.c
parent7b9bbb68e38d9f39ec2b555b0b9aab9e50585c3e (diff)
downloadpostgresql-a7d3110638bd9b8951c11913621e86ac79db1a1f.tar.gz
postgresql-a7d3110638bd9b8951c11913621e86ac79db1a1f.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/gistget.c')
0 files changed, 0 insertions, 0 deletions