From 0d231ceb731d89cab71f6ad2ad1aa9d766b2e243 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 17 Dec 2017 18:34:17 +0100 Subject: 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. --- pkg/ipc/ipc.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'pkg/ipc') 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 -- cgit mrf-deployment