Repository navigation
Commit 0eb6d77
authored
Validate reservation size in
This commit fixes some possible `unwrap()`s with the new `MemoryRequest`
type where some values were coerced from `u64` to `usize` in a way that
could panic. This commit moves validation into `Config` to make these
conversions always work and seems like a reasonable place to get an
error anyway.Config (#15209)1 parent 5619a5d commit 0eb6d77
2 files changed
Lines changed: 23 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2919 | 2919 | | |
2920 | 2920 | | |
2921 | 2921 | | |
2922 | | - | |
2923 | | - | |
| 2922 | + | |
| 2923 | + | |
2924 | 2924 | | |
2925 | 2925 | | |
2926 | 2926 | | |
2927 | 2927 | | |
2928 | 2928 | | |
| 2929 | + | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
2929 | 2933 | | |
2930 | 2934 | | |
2931 | 2935 | | |
| |||
2941 | 2945 | | |
2942 | 2946 | | |
2943 | 2947 | | |
2944 | | - | |
| 2948 | + | |
2945 | 2949 | | |
2946 | 2950 | | |
2947 | 2951 | | |
2948 | | - | |
| 2952 | + | |
2949 | 2953 | | |
2950 | 2954 | | |
2951 | 2955 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
61 | 76 | | |
62 | 77 | | |
63 | 78 | | |
| |||
0 commit comments