-
-
Notifications
You must be signed in to change notification settings - Fork 324
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
add crash_exitcode to Forkserver to accomodate AFL_CRASH_EXITCODE #2107
Conversation
libafl/src/executors/forkserver.rs
Outdated
@@ -1157,7 +1170,12 @@ where | |||
|
|||
if let Some(status) = self.forkserver.read_st_timed(&self.timeout)? { | |||
self.forkserver.set_status(status); | |||
if libc::WIFSIGNALED(self.forkserver().status()) { | |||
let exitcode_is_crash = if let Some(crash_exitcode) = self.crash_exitcode { | |||
libc::WSTOPSIG(self.forkserver().status()) == crash_exitcode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wfisignaled doesn't work here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WIFSIGNALED
returns a bool so we can't compare it to a given exit code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about WTERMSIG
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFL++ uses WEXITSTATUS
(and it's i8
/u8
, not i32
?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we keep this closer to AFL++? @vanhauser-thc for visibility
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@domenukk yeah you're right. its i8.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think it should be close to AFLpp
👍 |
No description provided.