Skip to content
This repository was archived by the owner on Mar 24, 2022. It is now read-only.

Commit b40262e

Browse files
committed
[lucet-runtime-tests] Call MAP_ANON mmap with fd -1
1 parent 47cf74a commit b40262e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lucet-runtime/lucet-runtime-tests/src/guest_fault.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ macro_rules! guest_fault_tests {
211211
4096,
212212
ProtFlags::PROT_NONE,
213213
MapFlags::MAP_ANON | MapFlags::MAP_PRIVATE,
214-
0,
214+
-1,
215215
0,
216216
)
217217
.expect("mmap succeeds") as *mut libc::c_char;

0 commit comments

Comments
 (0)