- Notifications
You must be signed in to change notification settings - Fork5k
Commita7d3110
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 parent7b9bbb6 commita7d3110
1 file changed
+13
-7
lines changedLines changed: 13 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2648 | 2648 |
| |
2649 | 2649 |
| |
2650 | 2650 |
| |
2651 |
| - | |
2652 |
| - | |
| 2651 | + | |
| 2652 | + | |
| 2653 | + | |
2653 | 2654 |
| |
2654 |
| - | |
| 2655 | + | |
2655 | 2656 |
| |
2656 | 2657 |
| |
2657 | 2658 |
| |
2658 | 2659 |
| |
2659 | 2660 |
| |
2660 | 2661 |
| |
2661 | 2662 |
| |
2662 |
| - | |
| 2663 | + | |
| 2664 | + | |
2663 | 2665 |
| |
2664 |
| - | |
| 2666 | + | |
2665 | 2667 |
| |
2666 | 2668 |
| |
2667 |
| - | |
2668 |
| - | |
2669 | 2669 |
| |
| 2670 | + | |
2670 | 2671 |
| |
2671 | 2672 |
| |
2672 | 2673 |
| |
| |||
2695 | 2696 |
| |
2696 | 2697 |
| |
2697 | 2698 |
| |
| 2699 | + | |
2698 | 2700 |
| |
2699 | 2701 |
| |
2700 | 2702 |
| |
| |||
2713 | 2715 |
| |
2714 | 2716 |
| |
2715 | 2717 |
| |
| 2718 | + | |
2716 | 2719 |
| |
2717 | 2720 |
| |
2718 | 2721 |
| |
| |||
2776 | 2779 |
| |
2777 | 2780 |
| |
2778 | 2781 |
| |
| 2782 | + | |
2779 | 2783 |
| |
2780 | 2784 |
| |
2781 | 2785 |
| |
| |||
2784 | 2788 |
| |
2785 | 2789 |
| |
2786 | 2790 |
| |
| 2791 | + | |
| 2792 | + | |
2787 | 2793 |
| |
2788 | 2794 |
| |
2789 | 2795 |
| |
|
0 commit comments
Comments
(0)