Skip to content

Commit de2f8d9

Browse files
authored
Merge pull request #49 from Evian-Zhang/cmplog-fix-arg
Fix cmplog arg
2 parents 6d586d5 + 9fe824d commit de2f8d9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/executor.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,10 @@ fn hook_opcode_cmplog<'a, D: 'a>(
199199
let cur_loc = afl_hash_ip(address) & (state.map_size - 1);
200200
let k = cur_loc as usize & (CMPLOG_MAP_W - 1);
201201
let shape = match size {
202-
16 => 1,
203-
32 => 3,
204-
64 => 7,
202+
8 => 1,
203+
16 => 2,
204+
32 => 4,
205+
64 => 8,
205206
_ => 0,
206207
};
207208

0 commit comments

Comments
 (0)