Commit afe2036
Merge #45
45: Don't use slice::from_raw_parts for uninitialized memory r=CAD97 a=CAD97
This is a very annoying incorrect usage of `slice::from_raw_parts` rather than `slice_from_raw_parts`.
This is a freshly allocated pointer, and specifically a pointer to uninitialized memory. So (when available) it is sound to use `ptr::slice_from_raw_parts_mut` and _unsound_ to use `slice::from_raw_parts_mut`.
Yay for yanking another version.
bors: r+
Co-authored-by: CAD97 <[email protected]>1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
0 commit comments