We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fc808f commit 3e8d663Copy full SHA for 3e8d663
python/unicornafl/__init__.py
@@ -126,9 +126,17 @@ def uc_afl_fuzz(uc: Uc,
126
_validate_crash_cb), UC_AFL_VALIDATE_CRASH_CB)
127
128
if isinstance(input_file, str):
129
- input_file = ctypes.create_string_buffer(input_file.encode('utf-8'))
+ input_file = \
130
+ ctypes.cast(
131
+ ctypes.create_string_buffer(input_file.encode('utf-8')),
132
+ ctypes.c_void_p
133
+ ).value
134
elif isinstance(input_file, bytes):
- input_file = ctypes.create_string_buffer(input_file)
135
136
137
+ ctypes.create_string_buffer(input_file),
138
139
140
elif input_file is None:
141
input_file = 0
142
else:
0 commit comments