1
0
Fork 0
forked from koniifer/ableos

»fixed« fuzzer

This commit is contained in:
Erin 2023-11-03 09:49:42 +01:00
parent 949dd3ba61
commit a7c4379976

View file

@ -1,7 +1,6 @@
#![no_main]
use {
hbbytecode::valider::validate,
hbvm::{
mem::{
softpaging::{
@ -16,7 +15,6 @@ use {
};
fuzz_target!(|data: &[u8]| {
if validate(data).is_ok() {
let mut vm = unsafe {
Vm::<_, 16384>::new(
SoftPagedMem::<_, true> {
@ -44,7 +42,6 @@ fuzz_target!(|data: &[u8]| {
}
let _ = unsafe { Box::from_raw(vm.memory.root_pt) };
}
});
fn alloc_and_map(memory: &mut SoftPagedMem<TestTrapHandler>, at: u64) -> *mut u8 {