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/validation.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'prog/validation.go') 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 { -- cgit mrf-deployment