forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8d0df20
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 parentc6eb574 commit8d0df20
1 file changed
+13
-7
lines changedLines changed: 13 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3596 | 3596 |
| |
3597 | 3597 |
| |
3598 | 3598 |
| |
3599 |
| - | |
3600 |
| - | |
| 3599 | + | |
| 3600 | + | |
| 3601 | + | |
3601 | 3602 |
| |
3602 |
| - | |
| 3603 | + | |
3603 | 3604 |
| |
3604 | 3605 |
| |
3605 | 3606 |
| |
3606 | 3607 |
| |
3607 | 3608 |
| |
3608 | 3609 |
| |
3609 | 3610 |
| |
3610 |
| - | |
| 3611 | + | |
| 3612 | + | |
3611 | 3613 |
| |
3612 |
| - | |
| 3614 | + | |
3613 | 3615 |
| |
3614 | 3616 |
| |
3615 |
| - | |
3616 |
| - | |
3617 | 3617 |
| |
| 3618 | + | |
3618 | 3619 |
| |
3619 | 3620 |
| |
3620 | 3621 |
| |
| |||
3643 | 3644 |
| |
3644 | 3645 |
| |
3645 | 3646 |
| |
| 3647 | + | |
3646 | 3648 |
| |
3647 | 3649 |
| |
3648 | 3650 |
| |
| |||
3661 | 3663 |
| |
3662 | 3664 |
| |
3663 | 3665 |
| |
| 3666 | + | |
3664 | 3667 |
| |
3665 | 3668 |
| |
3666 | 3669 |
| |
| |||
3724 | 3727 |
| |
3725 | 3728 |
| |
3726 | 3729 |
| |
| 3730 | + | |
3727 | 3731 |
| |
3728 | 3732 |
| |
3729 | 3733 |
| |
| |||
3732 | 3736 |
| |
3733 | 3737 |
| |
3734 | 3738 |
| |
| 3739 | + | |
| 3740 | + | |
3735 | 3741 |
| |
3736 | 3742 |
| |
3737 | 3743 |
| |
|
0 commit comments
Comments
(0)