Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Optimize AFL for android #63

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Optimize AFL for android #63

wants to merge 3 commits into from

Conversation

JoeyJiao
Copy link
Contributor

  • Android enables fortify while I don't want AFL to find these issues, so add option to disable during compile
  • Android devices nowadays normally has cpu#0 as little cores while cpu#Max as big cores. so start afl on big cores by default.

Copy link
Contributor

@Dor1s Dor1s left a comment

Choose a reason for hiding this comment

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

is this different from #59 ?

In most Android devices, cpu#0 is small core while cpu#Max is big core
@JoeyJiao
Copy link
Contributor Author

JoeyJiao commented Jan 3, 2020

is this different from #59 ?

rebase issue, updated with only new changes.
Thanks

@JoeyJiao
Copy link
Contributor Author

can you review the updated? @Dor1s

afl-fuzz.c Outdated Show resolved Hide resolved
Copy link
Contributor

@Dor1s Dor1s left a comment

Choose a reason for hiding this comment

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

Sorry, this version still has a lot of duplication. As I understand, the only Android-specific detail is the for-loop statement. In such case only that part should be under #ifdef, while the actual loop body can remain unconditional.

}
}
#else
for (i = cpu_core_count - cpu_start - 1; i > -1; i--) {
Copy link
Contributor

Choose a reason for hiding this comment

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

i is unsigned, it cannot have a negative value and thus will always be > -1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants