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/validation.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/validation.go')
| -rw-r--r-- | prog/validation.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/prog/validation.go b/prog/validation.go index e7a015c64..c8c030aa7 100644 --- a/prog/validation.go +++ b/prog/validation.go @@ -7,7 +7,11 @@ import ( "fmt" ) -var debug = false // enabled in tests +var debug = false // enabled in tests and fuzzers + +func Debug() { + debug = true +} func (p *Prog) debugValidate() { if debug { |
