Skip to content

Commit 0af477c

Browse files
committed
Fix the way input btyes are passed on AFL crash validation
1 parent 18d812e commit 0af477c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qiling/extensions/afl/afl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ def ql_afl_fuzz_custom(ql: Qiling,
9696
def __place_input_wrapper(uc: Uc, input_bytes: Array[c_char], iters: int, context: Any) -> bool:
9797
return place_input_callback(ql, input_bytes.raw, iters)
9898

99-
def __validate_crash_wrapper(uc: Uc, result: int, input_bytes: bytes, iters: int, context: Any) -> bool:
100-
return validate_crash_callback(ql, result, input_bytes, iters)
99+
def __validate_crash_wrapper(uc: Uc, result: int, input_bytes: Array[c_char], iters: int, context: Any) -> bool:
100+
return validate_crash_callback(ql, result, input_bytes.raw, iters)
101101

102102
def __fuzzing_wrapper(uc: Uc, context: Any) -> int:
103103
return fuzzing_callback(ql)

0 commit comments

Comments
 (0)