forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit30cf86f
committed
Fix write-past-buffer-end in ldapServiceLookup().
The code to assemble ldap_get_values_len's output into a single stringwrote the terminating null one byte past where it should. Fix that,and make some other cosmetic adjustments to make the code a trifle morereadable and more in line with usual Postgres coding style.Also, free the "result" string when done with it, to avoid a permanentmemory leak.Bug report and patch by Albe Laurenz, cosmetic adjustments by me.1 parentfbc56f7 commit30cf86f
1 file changed
+13
-7
lines changedLines changed: 13 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3339 | 3339 |
| |
3340 | 3340 |
| |
3341 | 3341 |
| |
3342 |
| - | |
3343 |
| - | |
| 3342 | + | |
| 3343 | + | |
| 3344 | + | |
3344 | 3345 |
| |
3345 |
| - | |
| 3346 | + | |
3346 | 3347 |
| |
3347 | 3348 |
| |
3348 | 3349 |
| |
3349 | 3350 |
| |
3350 | 3351 |
| |
3351 | 3352 |
| |
3352 | 3353 |
| |
3353 |
| - | |
| 3354 | + | |
| 3355 | + | |
3354 | 3356 |
| |
3355 |
| - | |
| 3357 | + | |
3356 | 3358 |
| |
3357 | 3359 |
| |
3358 |
| - | |
3359 |
| - | |
3360 | 3360 |
| |
| 3361 | + | |
3361 | 3362 |
| |
3362 | 3363 |
| |
3363 | 3364 |
| |
| |||
3386 | 3387 |
| |
3387 | 3388 |
| |
3388 | 3389 |
| |
| 3390 | + | |
3389 | 3391 |
| |
3390 | 3392 |
| |
3391 | 3393 |
| |
| |||
3404 | 3406 |
| |
3405 | 3407 |
| |
3406 | 3408 |
| |
| 3409 | + | |
3407 | 3410 |
| |
3408 | 3411 |
| |
3409 | 3412 |
| |
| |||
3467 | 3470 |
| |
3468 | 3471 |
| |
3469 | 3472 |
| |
| 3473 | + | |
3470 | 3474 |
| |
3471 | 3475 |
| |
3472 | 3476 |
| |
| |||
3475 | 3479 |
| |
3476 | 3480 |
| |
3477 | 3481 |
| |
| 3482 | + | |
| 3483 | + | |
3478 | 3484 |
| |
3479 | 3485 |
| |
3480 | 3486 |
| |
|
0 commit comments
Comments
(0)