When fuzzing on an Android device, I set the enable_syscalls set to only include the syscalls I am interested in. However, I discovered that the syscalls causing frequent crashes and reboots on the Android device may not be in the enable_syscalls set.
I encountered the following code. Since I am only focusing on the syscalls in enable_syscalls, I would like to ask: will removing this if condition solve the issue, or are there any better solutions? Looking forward to your reply. Thank you!
prog/prio.go
func (ct *ChoiceTable) choose(r *rand.Rand, bias int) int {
if r.Intn(100) < 5 {
// Let's make 5% decisions totally at random.
return ct.calls[r.Intn(len(ct.calls))].ID
}
....
}