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

Fix frida-mode for debug builds, ensure it will continue to work on release builds #427

Merged
merged 5 commits into from
Dec 21, 2021

Conversation

s1341
Copy link
Collaborator

@s1341 s1341 commented Dec 19, 2021

No description provided.

@tokatoka
Copy link
Member

I think this should be built on release x64 and debug aarch64, release aarch64

@s1341
Copy link
Collaborator Author

s1341 commented Dec 19, 2021

Not sure I understand what you mean...

@tokatoka
Copy link
Member

it does not work on x64 debug build.
so can I change it to
#[cfg(any(all(not(debug_assertions), target_arch = "x86_64"), target_arch = "aarch64"))]
?

@s1341
Copy link
Collaborator Author

s1341 commented Dec 19, 2021

I tested my change on x64 debug build... it works as expected.

#[cfg(all(not(debug_assertions), target_arch = "x86_64"))]
let stalker = Stalker::new(gum);
#[cfg(any(debug_assertions, target_arch = "aarch64"))]
Copy link
Member

Choose a reason for hiding this comment

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

What about non-x86, non-aarch in the future?
The previous seemed more correct

@s1341 s1341 changed the title Fix cfg directives so that we actually build on all combinations of release/debug x86_64/aarch64 Fix frida-mode for debug builds, ensure it will continue to work on release builds Dec 21, 2021
@domenukk domenukk merged commit b0019ae into main Dec 21, 2021
@domenukk domenukk deleted the fix_cfg_for_frida branch December 29, 2021 17:47
khang06 pushed a commit to khang06/LibAFL that referenced this pull request Oct 11, 2022
…elease builds (AFLplusplus#427)

* Fix cfg directives so that we actually build on all combinations of release/debug x86_64/aarch64

* Include fuzzer for stalker purposes

* Get rid of cfg on use
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