diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-03-28 19:01:25 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-03-29 08:56:02 +0100 |
| commit | c84501fe70ad8b8ca637daebb75eed7fcc707f6a (patch) | |
| tree | cd52d84eb726386ff8e0e841e4c8249f4cc4aa1d /prog/analysis.go | |
| parent | 98c1bf1cfb0f9530ab2107c29a52ba15fc4fefa3 (diff) | |
prog: fix a bunch of bugs in parsing
Add fuzzer for Deserialize and fix 5 or so bugs it found.
Fixes #1086
Diffstat (limited to 'prog/analysis.go')
| -rw-r--r-- | prog/analysis.go | 2 |
1 files changed, 1 insertions, 1 deletions
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()) } } |
