We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef3b064 commit 7b4de58Copy full SHA for 7b4de58
fuzz/fuzz_targets/snapshot2.rs
@@ -4,8 +4,8 @@ use ckb_vm::{
4
machine::VERSION2,
5
memory::{round_page_down, round_page_up, FLAG_EXECUTABLE, FLAG_FREEZED},
6
snapshot2::{DataSource, Snapshot2Context},
7
- Bytes, CoreMachine, DefaultMachine, DefaultMachineBuilder, Error, Memory, DEFAULT_MEMORY_SIZE,
8
- ISA_A, ISA_B, ISA_IMC, ISA_MOP, RISCV_PAGESIZE,
+ Bytes, CoreMachine, DefaultMachine, DefaultMachineBuilder, Memory, DEFAULT_MEMORY_SIZE, ISA_A,
+ ISA_B, ISA_IMC, ISA_MOP, RISCV_PAGESIZE,
9
};
10
use ckb_vm_definitions::asm::AsmCoreMachine;
11
use libfuzzer_sys::fuzz_target;
@@ -127,7 +127,7 @@ fuzz_target!(|data: [u8; 96]| {
127
let length = deque.u32() as u64;
128
let offset = deque.u32() as u64;
129
let addr = deque.u32() as u64;
130
- let result = ctx.store_bytes(&mut machine1, addr, &DATA_SOURCE_CONTENT, offset, length);
+ let result = ctx.store_bytes(&mut machine1, addr, &DATA_SOURCE_CONTENT, offset, length, 0);
131
if result.is_err() {
132
return;
133
}
0 commit comments