1
1
error[E0080]: evaluation of constant value failed
2
- --> $SRC_DIR/core/src/intrinsics.rs:LL:COL
3
- |
4
- LL | unsafe { copy_nonoverlapping(src, dst, count) }
5
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
- | |
7
- | memory access failed: alloc7 has size 4, so pointer to 4 bytes starting at offset 4 is out-of-bounds
8
- | inside `copy_nonoverlapping::<u32>` at $SRC_DIR/core/src/intrinsics.rs:LL:COL
9
- |
10
- ::: $SRC_DIR/core/src/ptr/mod.rs:LL:COL
2
+ --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
11
3
|
12
4
LL | copy_nonoverlapping(src, tmp.as_mut_ptr(), 1);
13
- | --------------------------------------------- inside `std::ptr::read::<u32>` at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
5
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
+ | |
7
+ | memory access failed: alloc7 has size 4, so pointer to 4 bytes starting at offset 4 is out-of-bounds
8
+ | inside `std::ptr::read::<u32>` at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
14
9
|
15
10
::: $DIR/out_of_bounds_read.rs:13:33
16
11
|
17
12
LL | const _READ: u32 = unsafe { ptr::read(PAST_END_PTR) };
18
13
| ----------------------- inside `_READ` at $DIR/out_of_bounds_read.rs:13:33
19
14
20
15
error[E0080]: evaluation of constant value failed
21
- --> $SRC_DIR/core/src/intrinsics.rs:LL:COL
22
- |
23
- LL | unsafe { copy_nonoverlapping(src, dst, count) }
24
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25
- | |
26
- | memory access failed: alloc7 has size 4, so pointer to 4 bytes starting at offset 4 is out-of-bounds
27
- | inside `copy_nonoverlapping::<u32>` at $SRC_DIR/core/src/intrinsics.rs:LL:COL
28
- |
29
- ::: $SRC_DIR/core/src/ptr/mod.rs:LL:COL
16
+ --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
30
17
|
31
18
LL | copy_nonoverlapping(src, tmp.as_mut_ptr(), 1);
32
- | --------------------------------------------- inside `std::ptr::read::<u32>` at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
19
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
+ | |
21
+ | memory access failed: alloc7 has size 4, so pointer to 4 bytes starting at offset 4 is out-of-bounds
22
+ | inside `std::ptr::read::<u32>` at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
33
23
|
34
24
::: $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
35
25
|
@@ -42,18 +32,13 @@ LL | const _CONST_READ: u32 = unsafe { PAST_END_PTR.read() };
42
32
| ------------------- inside `_CONST_READ` at $DIR/out_of_bounds_read.rs:14:39
43
33
44
34
error[E0080]: evaluation of constant value failed
45
- --> $SRC_DIR/core/src/intrinsics.rs:LL:COL
46
- |
47
- LL | unsafe { copy_nonoverlapping(src, dst, count) }
48
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49
- | |
50
- | memory access failed: alloc7 has size 4, so pointer to 4 bytes starting at offset 4 is out-of-bounds
51
- | inside `copy_nonoverlapping::<u32>` at $SRC_DIR/core/src/intrinsics.rs:LL:COL
52
- |
53
- ::: $SRC_DIR/core/src/ptr/mod.rs:LL:COL
35
+ --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
54
36
|
55
37
LL | copy_nonoverlapping(src, tmp.as_mut_ptr(), 1);
56
- | --------------------------------------------- inside `std::ptr::read::<u32>` at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
38
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39
+ | |
40
+ | memory access failed: alloc7 has size 4, so pointer to 4 bytes starting at offset 4 is out-of-bounds
41
+ | inside `std::ptr::read::<u32>` at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
57
42
|
58
43
::: $SRC_DIR/core/src/ptr/mut_ptr.rs:LL:COL
59
44
|
0 commit comments