- Notifications
You must be signed in to change notification settings - Fork5.3k
Commit7b542cd
committed
Fix off-by-one Asserts in FreePageBtreeInsertInternal/Leaf.
These two functions expect there to be room to insert another itemin the FreePageBtree's array, but their assertions were too weakto guarantee that. This has little practical effect granting thatthe callers are not buggy, but it seems to be misleading late-modelCoverity into complaining about possible array overrun.Author: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/799984.1761150474@sss.pgh.pa.usBackpatch-through: 131 parent7fb8c92 commit7b542cd
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
894 | 894 | | |
895 | 895 | | |
896 | 896 | | |
897 | | - | |
| 897 | + | |
898 | 898 | | |
899 | 899 | | |
900 | 900 | | |
901 | 901 | | |
902 | 902 | | |
903 | 903 | | |
904 | | - | |
| 904 | + | |
905 | 905 | | |
906 | 906 | | |
907 | 907 | | |
| |||
911 | 911 | | |
912 | 912 | | |
913 | 913 | | |
914 | | - | |
| 914 | + | |
915 | 915 | | |
916 | 916 | | |
917 | 917 | | |
918 | 918 | | |
919 | 919 | | |
920 | 920 | | |
921 | | - | |
| 921 | + | |
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
| |||
0 commit comments
Comments
(0)