-
Notifications
You must be signed in to change notification settings - Fork 663
Optimize AFL for android #63
base: master
Are you sure you want to change the base?
Conversation
JoeyJiao
commented
Dec 26, 2019
- 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.
Dor1s
left a comment
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.
is this different from #59 ?
In most Android devices, cpu#0 is small core while cpu#Max is big core
rebase issue, updated with only new changes. |
|
can you review the updated? @Dor1s |
Dor1s
left a comment
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.
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--) { |
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 is unsigned, it cannot have a negative value and thus will always be > -1