Skip to content

Commit

Permalink
Merge pull request #1503 from golem9247/patch-1
Browse files Browse the repository at this point in the history
fix null byte truncation in __place_input_wrapper
  • Loading branch information
xwings authored Nov 25, 2024
2 parents e371b61 + 2a7d8f9 commit 53318ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiling/extensions/afl/afl.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def ql_afl_fuzz_custom(ql: Qiling,
persistent_iters: int = 1):

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

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

0 comments on commit 53318ba

Please sign in to comment.