(&self, ptr: *const u8, len: usize)
| 23 | } |
| 24 | |
| 25 | fn unpublish_executable(&self, ptr: *const u8, len: usize) -> wasmtime::Result<()> { |
| 26 | unsafe { |
| 27 | mprotect( |
| 28 | ptr as *mut _, |
| 29 | len, |
| 30 | MprotectFlags::READ | MprotectFlags::WRITE, |
| 31 | )?; |
| 32 | } |
| 33 | Ok(()) |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | #[test] |
no test coverage detected