- Notifications
You must be signed in to change notification settings - Fork5
Commit96ba40c
committed
Guard against possible memory allocation botch in batchmemtuples().
Negative availMemLessRefund would be problematic. It's not entirelyclear whether the case can be hit in the code as it stands, but thisseems like good future-proofing in any case. While we're at it,insist that the value be not merely positive but not tiny, so as toavoid doing a lot of repalloc work for little gain.Peter GeogheganDiscussion: <CAM3SWZRVkuUB68DbAkgw=532gW0f+fofKueAMsY7hVYi68MuYQ@mail.gmail.com>1 parent512c197 commit96ba40c
1 file changed
+21
-2
lines changedLines changed: 21 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2866 | 2866 |
| |
2867 | 2867 |
| |
2868 | 2868 |
| |
| 2869 | + | |
| 2870 | + | |
| 2871 | + | |
2869 | 2872 |
| |
2870 | 2873 |
| |
2871 | 2874 |
| |
| |||
2879 | 2882 |
| |
2880 | 2883 |
| |
2881 | 2884 |
| |
| 2885 | + | |
| 2886 | + | |
| 2887 | + | |
| 2888 | + | |
| 2889 | + | |
| 2890 | + | |
| 2891 | + | |
| 2892 | + | |
| 2893 | + | |
| 2894 | + | |
| 2895 | + | |
| 2896 | + | |
| 2897 | + | |
| 2898 | + | |
2882 | 2899 |
| |
2883 | 2900 |
| |
2884 | 2901 |
| |
| |||
2888 | 2905 |
| |
2889 | 2906 |
| |
2890 | 2907 |
| |
2891 |
| - | |
2892 |
| - | |
2893 | 2908 |
| |
| 2909 | + | |
| 2910 | + | |
| 2911 | + | |
| 2912 | + | |
2894 | 2913 |
| |
2895 | 2914 |
| |
2896 | 2915 |
| |
|
0 commit comments
Comments
(0)