-
Notifications
You must be signed in to change notification settings - Fork 8
Oracle classΒ #20
Description
A fuzzer can look for something different than crashes. Think about timeouts for instance.
The oracle class looks at observation channels, similarly to feedback, but it decides if the testcase is crashing, not if it is interesting.
For regular fuzzing, you should define the exit code of a process as an observation channel. To make the AFL oracle, you need two observation channels that are the exit code and the coverage map.
The dedup (you can choose also that dedup is part of oracle, not a separate entity) take a crashing input, look at observation channels and say of a crash worth saving (not a duplicate). in AFL this just uses the feedback to see if the crash triggers new coverage.
For timeout, the oracle will use the coverage and the timing observation channels. I hope it is clear.