You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"when memory is shared with a native function call, Miri stops tracking initialization and provenance for that memory"
690
+
),
691
+
note!(
692
+
"in particular, Miri assumes that the native call initializes all memory it has access to"
693
+
),
694
+
note!(
695
+
"Miri also assumes that any part of this memory may be a pointer that is permitted to point to arbitrary exposed memory"
696
+
),
697
+
note!(
698
+
"what this means is that Miri will easily miss Undefined Behavior related to incorrect usage of this shared memory, so you should not take a clean Miri run as a signal that your FFI code is UB-free"
| ^^^^^^^^^^^^^^^^^ sharing memory with a native function called via FFI
6
+
|
7
+
= help: when memory is shared with a native function call, Miri stops tracking initialization and provenance for that memory
8
+
= help: in particular, Miri assumes that the native call initializes all memory it has access to
9
+
= help: Miri also assumes that any part of this memory may be a pointer that is permitted to point to arbitrary exposed memory
10
+
= help: what this means is that Miri will easily miss Undefined Behavior related to incorrect usage of this shared memory, so you should not take a clean Miri run as a signal that your FFI code is UB-free
11
+
= note: BACKTRACE:
12
+
= note: inside `test_access_pointer` at tests/native-lib/pass/ptr_read_access.rs:LL:CC
| ^^^^^^^^^^^^^^^^^^^^^ sharing memory with a native function called via FFI
6
+
|
7
+
= help: when memory is shared with a native function call, Miri stops tracking initialization and provenance for that memory
8
+
= help: in particular, Miri assumes that the native call initializes all memory it has access to
9
+
= help: Miri also assumes that any part of this memory may be a pointer that is permitted to point to arbitrary exposed memory
10
+
= help: what this means is that Miri will easily miss Undefined Behavior related to incorrect usage of this shared memory, so you should not take a clean Miri run as a signal that your FFI code is UB-free
11
+
= note: BACKTRACE:
12
+
= note: inside `test_increment_int` at tests/native-lib/pass/ptr_write_access.rs:LL:CC
0 commit comments