Skip to content

Commit 7b4de58

Browse files
authored
Fix snapshot2 fuzz (#435)
1 parent ef3b064 commit 7b4de58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fuzz/fuzz_targets/snapshot2.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use ckb_vm::{
44
machine::VERSION2,
55
memory::{round_page_down, round_page_up, FLAG_EXECUTABLE, FLAG_FREEZED},
66
snapshot2::{DataSource, Snapshot2Context},
7-
Bytes, CoreMachine, DefaultMachine, DefaultMachineBuilder, Error, Memory, DEFAULT_MEMORY_SIZE,
8-
ISA_A, ISA_B, ISA_IMC, ISA_MOP, RISCV_PAGESIZE,
7+
Bytes, CoreMachine, DefaultMachine, DefaultMachineBuilder, Memory, DEFAULT_MEMORY_SIZE, ISA_A,
8+
ISA_B, ISA_IMC, ISA_MOP, RISCV_PAGESIZE,
99
};
1010
use ckb_vm_definitions::asm::AsmCoreMachine;
1111
use libfuzzer_sys::fuzz_target;
@@ -127,7 +127,7 @@ fuzz_target!(|data: [u8; 96]| {
127127
let length = deque.u32() as u64;
128128
let offset = deque.u32() as u64;
129129
let addr = deque.u32() as u64;
130-
let result = ctx.store_bytes(&mut machine1, addr, &DATA_SOURCE_CONTENT, offset, length);
130+
let result = ctx.store_bytes(&mut machine1, addr, &DATA_SOURCE_CONTENT, offset, length, 0);
131131
if result.is_err() {
132132
return;
133133
}

0 commit comments

Comments
 (0)