- Notifications
You must be signed in to change notification settings - Fork5.1k
Commit2273fa3
committed
Fix Coverity issues reported in commit25a30bb.
Fix several issues pointed out by Coverity (reported by Tome Lane).- In row_is_in_frame(), return value of window_gettupleslot() was not checked.- WinGetFuncArgInPartition() tried to derefference "isout" pointer even if it could be NULL in some places.Besides the issues, I also fixed a compiler warning reported by ÁlvaroHerrera.Moreover, in WinGetFuncArgInPartition refactor the do...while loop sothat the codes inside the loop simpler. Also simplify the case whenabs_pos < 0.Author: Tatsuo Ishii <ishii@postgresql.org>Reviewed-by: Paul Ramsey <pramsey@cleverelephant.ca>Reported-by: Tom Lane <tgl@sss.pgh.pa.us>Reported-by: Álvaro Herrera <alvherre@kurilemu.de>Discussion:https://postgr.es/m/1686755.1759679957%40sss.pgh.pa.usDiscussion:https://postgr.es/m/202510051612.gw67jlc2iqpw%40alvherre.pgsql1 parent3bf9056 commit2273fa3
1 file changed
+38
-39
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1501 | 1501 |
| |
1502 | 1502 |
| |
1503 | 1503 |
| |
1504 |
| - | |
1505 |
| - | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
1506 | 1507 |
| |
1507 | 1508 |
| |
1508 | 1509 |
| |
| |||
3721 | 3722 |
| |
3722 | 3723 |
| |
3723 | 3724 |
| |
| 3725 | + | |
3724 | 3726 |
| |
3725 | 3727 |
| |
3726 | 3728 |
| |
| |||
3759 | 3761 |
| |
3760 | 3762 |
| |
3761 | 3763 |
| |
| 3764 | + | |
3762 | 3765 |
| |
3763 |
| - | |
3764 |
| - | |
| 3766 | + | |
| 3767 | + | |
3765 | 3768 |
| |
| 3769 | + | |
| 3770 | + | |
3766 | 3771 |
| |
3767 | 3772 |
| |
3768 | 3773 |
| |
| 3774 | + | |
| 3775 | + | |
| 3776 | + | |
3769 | 3777 |
| |
3770 | 3778 |
| |
3771 | 3779 |
| |
3772 | 3780 |
| |
3773 | 3781 |
| |
3774 | 3782 |
| |
| 3783 | + | |
| 3784 | + | |
3775 | 3785 |
| |
3776 |
| - | |
3777 |
| - | |
3778 |
| - | |
3779 |
| - | |
3780 |
| - | |
3781 |
| - | |
3782 |
| - | |
| 3786 | + | |
3783 | 3787 |
| |
3784 |
| - | |
3785 | 3788 |
| |
3786 |
| - | |
| 3789 | + | |
| 3790 | + | |
| 3791 | + | |
| 3792 | + | |
| 3793 | + | |
| 3794 | + | |
| 3795 | + | |
| 3796 | + | |
| 3797 | + | |
3787 | 3798 |
| |
3788 |
| - | |
3789 |
| - | |
3790 |
| - | |
3791 |
| - | |
3792 |
| - | |
3793 |
| - | |
3794 |
| - | |
3795 |
| - | |
3796 |
| - | |
3797 |
| - | |
3798 |
| - | |
3799 |
| - | |
3800 |
| - | |
3801 |
| - | |
3802 |
| - | |
3803 |
| - | |
3804 |
| - | |
3805 |
| - | |
3806 |
| - | |
3807 |
| - | |
3808 |
| - | |
3809 |
| - | |
3810 |
| - | |
3811 |
| - | |
3812 |
| - | |
| 3799 | + | |
| 3800 | + | |
| 3801 | + | |
| 3802 | + | |
3813 | 3803 |
| |
| 3804 | + | |
| 3805 | + | |
| 3806 | + | |
| 3807 | + | |
3814 | 3808 |
| |
3815 | 3809 |
| |
3816 | 3810 |
| |
3817 |
| - | |
| 3811 | + | |
| 3812 | + | |
| 3813 | + | |
| 3814 | + | |
3818 | 3815 |
| |
| 3816 | + | |
| 3817 | + | |
3819 | 3818 |
| |
3820 | 3819 |
| |
3821 | 3820 |
| |
|
0 commit comments
Comments
(0)