- Notifications
You must be signed in to change notification settings - Fork5
Commita133bf7
committed
Fix misplaced right paren bugs in pgstatfuncs.c.
The bug would only show up if the C sockaddr structure containedzero in the first byte for a valid address; otherwise it wouldfail to fail, which is probably why it went unnoticed for so long.Patch submitted by Joel Jacobson after seeing an article by AndreyKarpov in which he reports finding this through static codeanalysis using PVS-Studio. While I was at it I moved a definitionof a local variable referenced in the buggy code to a more localcontext.Backpatch to all supported branches.1 parenta09e3fd commita133bf7
1 file changed
+5
-4
lines changedLines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
618 | 618 |
| |
619 | 619 |
| |
620 | 620 |
| |
621 |
| - | |
622 | 621 |
| |
623 | 622 |
| |
624 | 623 |
| |
| |||
659 | 658 |
| |
660 | 659 |
| |
661 | 660 |
| |
| 661 | + | |
| 662 | + | |
662 | 663 |
| |
663 | 664 |
| |
664 | 665 |
| |
| |||
710 | 711 |
| |
711 | 712 |
| |
712 | 713 |
| |
713 |
| - | |
| 714 | + | |
714 | 715 |
| |
715 | 716 |
| |
716 | 717 |
| |
| |||
974 | 975 |
| |
975 | 976 |
| |
976 | 977 |
| |
977 |
| - | |
| 978 | + | |
978 | 979 |
| |
979 | 980 |
| |
980 | 981 |
| |
| |||
1021 | 1022 |
| |
1022 | 1023 |
| |
1023 | 1024 |
| |
1024 |
| - | |
| 1025 | + | |
1025 | 1026 |
| |
1026 | 1027 |
| |
1027 | 1028 |
| |
|
0 commit comments
Comments
(0)