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 /pkg/ipc | |
| 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 'pkg/ipc')
| -rw-r--r-- | pkg/ipc/ipc.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/pkg/ipc/ipc.go b/pkg/ipc/ipc.go index ff17b52a3..7aa57dedf 100644 --- a/pkg/ipc/ipc.go +++ b/pkg/ipc/ipc.go @@ -166,14 +166,6 @@ type CallInfo struct { FaultInjected bool } -func GetCompMaps(info []CallInfo) []prog.CompMap { - compMaps := make([]prog.CompMap, len(info)) - for i, inf := range info { - compMaps[i] = inf.Comps - } - return compMaps -} - type Env struct { in []byte out []byte |
