From c84501fe70ad8b8ca637daebb75eed7fcc707f6a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 28 Mar 2019 19:01:25 +0100 Subject: prog: fix a bunch of bugs in parsing Add fuzzer for Deserialize and fix 5 or so bugs it found. Fixes #1086 --- prog/analysis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prog/analysis.go') diff --git a/prog/analysis.go b/prog/analysis.go index f03f828b9..383ba15d1 100644 --- a/prog/analysis.go +++ b/prog/analysis.go @@ -60,7 +60,7 @@ func (s *state) analyzeImpl(c *Call, resources bool) { case a.IsSpecial(): case a.VmaSize != 0: s.va.noteAlloc(a.Address/s.target.PageSize, a.VmaSize/s.target.PageSize) - default: + case a.Res != nil: s.ma.noteAlloc(a.Address, a.Res.Size()) } } -- cgit mrf-deployment