diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-12-17 18:34:17 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-12-18 09:50:17 +0100 |
| commit | 0d231ceb731d89cab71f6ad2ad1aa9d766b2e243 (patch) | |
| tree | f2eddc72a82d78c10aac507f29d4713bf0106fc0 /tools | |
| parent | d5beb42acec986ef99739a4187ce8dd9513972cc (diff) | |
syz-fuzzer: refactor
syz-fuzzer organically grew from a small nice main function
into a huge single-file monster with tons of global state.
Start refactoring it into something more managable.
This change separates 2 things:
1. Proc: a single fuzzing process (ipc.Env wrapper).
2. WorkQueue: holds global non-fuzzing work items.
More work needed, but this is good first step.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/syz-execprog/execprog.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/syz-execprog/execprog.go b/tools/syz-execprog/execprog.go index ff0ceb4ca..ef5a0479a 100644 --- a/tools/syz-execprog/execprog.go +++ b/tools/syz-execprog/execprog.go @@ -184,13 +184,12 @@ func main() { } } if *flagHints { - compMaps := ipc.GetCompMaps(info) ncomps, ncandidates := 0, 0 for i := range entry.P.Calls { if *flagOutput == "stdout" { fmt.Printf("call %v:\n", i) } - comps := compMaps[i] + comps := info[i].Comps for v, args := range comps { ncomps += len(args) if *flagOutput == "stdout" { |
