-
-
Notifications
You must be signed in to change notification settings - Fork 975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
afl-fuzz seg faults when using a python custom mutator #1699
Comments
but you have not defined out_buf in your python script? if you do not want to change anything then "return buf". |
I have defined it, |
please give a real script that fails, not something that cannot work in the first place. |
but yes post_process has a bug, I am clueless though why but I have neither knowledge about python, nor did I implement that python function. handing over to dominik :) |
for dominik: |
Tried to fix it in #1701, but not sure if this messes other things up.. |
I ran my code with your fix, now, after fuzzing for a few seconds, I get the following error:
Does this help or should I provide steps to reproduce? (Getting the same error when using C or Python custom mutators) |
Also, this fix seems to have fixed the stability issue (at least during the few seconds of fuzzing) I had mentioned on discord @vanhauser-thc :) |
Dominik's fix attempt removed important functionality. |
Now, the crash is at a different location and stability issue is back
|
can you please share a custom mutator where this happens? |
we want to do a new release and this should be fixed then. and we have no own custom mutator that shows this issue, at least for me it is working fine, hence I cannot debug this. |
sent you an email! |
this should be fixed now, please test |
Thanks a lot! It seems to be fixed now but I'm seeing a mem leak, would you be able to verify: ==1342537==ERROR: LeakSanitizer: detected memory leaks Direct leak of 22600896 byte(s) in 159 object(s) allocated from: |
Compiled AFLplusplus with
ASAN_BUILD=1
+AFL_DEBUG=1
. Segmentation fault seems to occur during calibration stage 2.Btacktrace
On a high level, the python custom mutator had the following code:
I tried to follow the example code to do this, maybe I'm missing something. I'll be happy to provide any additional information. Thanks!
The text was updated successfully, but these errors were encountered: