diff options
| author | Jamie Liu <jamieliu@google.com> | 2016-06-14 15:55:19 -0700 |
|---|---|---|
| committer | Jamie Liu <jamieliu@google.com> | 2016-06-14 16:03:26 -0700 |
| commit | 016f6be69bd46b3406e8a94e8ecee63a817c3c0a (patch) | |
| tree | dac4bc3a8753cacd7abeed74c25ec7eea35732a7 | |
| parent | da7529ea5148a8df562d1f8518e622c792e43269 (diff) | |
stress: fix "assignment to entry in nil map" panic
| -rw-r--r-- | tools/syz-stress/stress.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/syz-stress/stress.go b/tools/syz-stress/stress.go index 8bd56583a..defcb38a3 100644 --- a/tools/syz-stress/stress.go +++ b/tools/syz-stress/stress.go @@ -141,6 +141,7 @@ func buildCallList() map[*sys.Call]bool { calls, err := host.DetectSupportedSyscalls() if err != nil { log.Printf("failed to detect host supported syscalls: %v", err) + calls = make(map[*sys.Call]bool) for _, c := range sys.Calls { calls[c] = true } |
