File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ to let `safe` code exhibit these behaviors.
7
7
8
8
* Data races.
9
9
* Dereferencing a null or dangling raw pointer.
10
+ * Unaligned pointer reading and writing outside of [ ` read_unaligned ` ]
11
+ and [ ` write_unaligned ` ] .
10
12
* Reads of [ undef] \( uninitialized) memory.
11
13
* Breaking the [ pointer aliasing rules] on accesses through raw pointers;
12
14
a subset of the rules used by C.
@@ -35,4 +37,6 @@ to let `safe` code exhibit these behaviors.
35
37
[ undef ] : http://llvm.org/docs/LangRef.html#undefined-values
36
38
[ `offset` ] : https://doc.rust-lang.org/std/primitive.pointer.html#method.offset
37
39
[ `std::ptr::copy_nonoverlapping_memory` ] : https://doc.rust-lang.org/std/ptr/fn.copy_nonoverlapping.html
38
- [ `UnsafeCell<U>` ] : https://doc.rust-lang.org/std/cell/struct.UnsafeCell.html
40
+ [ `UnsafeCell<U>` ] : https://doc.rust-lang.org/std/cell/struct.UnsafeCell.html
41
+ [ `read_unaligned` ] : https://doc.rust-lang.org/std/ptr/fn.read_unaligned.html
42
+ [ `write_unaligned` ] : https://doc.rust-lang.org/std/ptr/fn.write_unaligned.html
You can’t perform that action at this time.
0 commit comments