Commit c0247fa
committed
Auto merge of #362 - JustForFun88:check_layout_size, r=Amanieu
Check that layout size fits in isize in Layout
Since [rust-lang/rust#95295](rust-lang/rust#95295) we need check that Layout `size`, when rounded up to the nearest multiple of `align`, must not overflow isize (i.e., the rounded value must be less than or equal to `isize::MAX`)2 files changed
+18
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8044 | 8044 | | |
8045 | 8045 | | |
8046 | 8046 | | |
8047 | | - | |
| 8047 | + | |
8048 | 8048 | | |
8049 | 8049 | | |
8050 | 8050 | | |
8051 | | - | |
| 8051 | + | |
8052 | 8052 | | |
8053 | 8053 | | |
8054 | 8054 | | |
8055 | 8055 | | |
8056 | | - | |
| 8056 | + | |
| 8057 | + | |
| 8058 | + | |
| 8059 | + | |
| 8060 | + | |
| 8061 | + | |
8057 | 8062 | | |
8058 | 8063 | | |
8059 | 8064 | | |
8060 | 8065 | | |
8061 | | - | |
| 8066 | + | |
8062 | 8067 | | |
8063 | | - | |
| 8068 | + | |
8064 | 8069 | | |
8065 | | - | |
| 8070 | + | |
8066 | 8071 | | |
8067 | | - | |
| 8072 | + | |
8068 | 8073 | | |
8069 | 8074 | | |
8070 | 8075 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
251 | 257 | | |
252 | 258 | | |
253 | 259 | | |
| |||
1078 | 1084 | | |
1079 | 1085 | | |
1080 | 1086 | | |
1081 | | - | |
1082 | | - | |
1083 | | - | |
1084 | | - | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
1088 | | - | |
1089 | | - | |
1090 | 1087 | | |
1091 | 1088 | | |
1092 | 1089 | | |
| |||
0 commit comments