Skip to content

Commit 53318ba

Browse files
authored
Merge pull request #1503 from golem9247/patch-1
fix null byte truncation in __place_input_wrapper
2 parents e371b61 + 2a7d8f9 commit 53318ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qiling/extensions/afl/afl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def ql_afl_fuzz_custom(ql: Qiling,
9494
persistent_iters: int = 1):
9595

9696
def __place_input_wrapper(uc: Uc, input_bytes: Array[c_char], iters: int, context: Any) -> bool:
97-
return place_input_callback(ql, input_bytes.value, iters)
97+
return place_input_callback(ql, input_bytes.raw, iters)
9898

9999
def __validate_crash_wrapper(uc: Uc, result: int, input_bytes: bytes, iters: int, context: Any) -> bool:
100100
return validate_crash_callback(ql, result, input_bytes, iters)

0 commit comments

Comments
 (0)