aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2016-06-15 08:39:46 +0200
committerGitHub <noreply@github.com>2016-06-15 08:39:46 +0200
commit60319f42a0758399f3b1a86f4f7d2d9e37fb0d6f (patch)
treedac4bc3a8753cacd7abeed74c25ec7eea35732a7
parentda7529ea5148a8df562d1f8518e622c792e43269 (diff)
parent016f6be69bd46b3406e8a94e8ecee63a817c3c0a (diff)
Merge pull request #41 from nixprime/master
stress: fix "assignment to entry in nil map" panic
-rw-r--r--tools/syz-stress/stress.go1
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
}