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
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail-dep/shims/mmap_use_after_munmap.stderr
+1-16Lines changed: 1 addition & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,3 @@
1
-
warning: integer-to-pointer cast
2
-
--> $DIR/mmap_use_after_munmap.rs:LL:CC
3
-
|
4
-
LL | libc::munmap(ptr, 4096);
5
-
| ^^^^^^^^^^^^^^^^^^^^^^^ integer-to-pointer cast
6
-
|
7
-
= help: This program is using integer-to-pointer casts or (equivalently) `ptr::from_exposed_addr`,
8
-
= help: which means that Miri might miss pointer bugs in this program.
9
-
= help: See https://doc.rust-lang.org/nightly/std/ptr/fn.from_exposed_addr.html for more details on that operation.
10
-
= help: To ensure that Miri does not miss bugs in your program, use Strict Provenance APIs (https://doc.rust-lang.org/nightly/std/ptr/index.html#strict-provenance, https://crates.io/crates/sptr) instead.
11
-
= help: You can then pass the `-Zmiri-strict-provenance` flag to Miri, to ensure you are not relying on `from_exposed_addr` semantics.
12
-
= help: Alternatively, the `-Zmiri-permissive-provenance` flag disables this warning.
13
-
= note: BACKTRACE:
14
-
= note: inside `main` at $DIR/mmap_use_after_munmap.rs:LL:CC
15
-
16
1
error: Undefined Behavior: memory access failed: ALLOC has been freed, so this pointer is dangling
17
2
--> $DIR/mmap_use_after_munmap.rs:LL:CC
18
3
|
@@ -43,5 +28,5 @@ LL | libc::munmap(ptr, 4096);
43
28
44
29
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
45
30
46
-
error: aborting due to 1 previous error; 1 warning emitted
0 commit comments