forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit918d74a
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 parent7016d97 commit918d74a
1 file changed
+5
-4
lines changedLines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
486 | 486 |
| |
487 | 487 |
| |
488 | 488 |
| |
489 |
| - | |
490 | 489 |
| |
491 | 490 |
| |
492 | 491 |
| |
| |||
527 | 526 |
| |
528 | 527 |
| |
529 | 528 |
| |
| 529 | + | |
| 530 | + | |
530 | 531 |
| |
531 | 532 |
| |
532 | 533 |
| |
| |||
556 | 557 |
| |
557 | 558 |
| |
558 | 559 |
| |
559 |
| - | |
| 560 | + | |
560 | 561 |
| |
561 | 562 |
| |
562 | 563 |
| |
| |||
809 | 810 |
| |
810 | 811 |
| |
811 | 812 |
| |
812 |
| - | |
| 813 | + | |
813 | 814 |
| |
814 | 815 |
| |
815 | 816 |
| |
| |||
856 | 857 |
| |
857 | 858 |
| |
858 | 859 |
| |
859 |
| - | |
| 860 | + | |
860 | 861 |
| |
861 | 862 |
| |
862 | 863 |
| |
|
0 commit comments
Comments
(0)