Skip to content
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

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

R9295
Copy link
Contributor

@R9295 R9295 commented Apr 25, 2024

No description provided.

@@ -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
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about WTERMSIG

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

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

Copy link
Contributor Author

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.

Copy link
Member

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

@R9295
Copy link
Contributor Author

R9295 commented Apr 26, 2024

@domenukk / @tokatoka updated to use i8 and EXITSTATUS

@tokatoka
Copy link
Member

👍

@tokatoka tokatoka merged commit 32963be into AFLplusplus:main Apr 26, 2024
100 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants