Skip to content

Commit

Permalink
__place_input_wrapper : use input_bytes.raw instead of inputs_bytes.v…
Browse files Browse the repository at this point in the history
…alue to prevent null byte truncation
  • Loading branch information
golem9247 authored Oct 23, 2024
1 parent 1a00eb1 commit 2a7d8f9
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, bytes(input_bytes), 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 2a7d8f9

Please sign in to comment.