From 2f49a0df0d213ee323f694e7bdee8b8a097dc698 Mon Sep 17 00:00:00 2001 From: Henry Date: Thu, 30 Apr 2015 15:30:54 +0200 Subject: [PATCH] found two panics with go-fuzz from Dmitry Vyukov go-fuzz-build github.com/cryptix/wav go-fuzz -bin=./wav-fuzz -corpus=./corpus -workdir=~/wdir --- corpus/16_50samples.wav | Bin 0 -> 144 bytes corpus/16bit.wav | Bin 0 -> 46 bytes corpus/24_50samples.wav | Bin 0 -> 194 bytes corpus/24bit.wav | Bin 0 -> 47 bytes corpus/headers_zerosamples.wav | Bin 0 -> 262 bytes corpus/u8bit.wav | Bin 0 -> 45 bytes errors.go | 3 +++ fuzz.go | 28 ++++++++++++++++++++ reader.go | 17 +++++++++--- reader_test.go | 47 +++++++++++++++++++++++++++++++++ 10 files changed, 91 insertions(+), 4 deletions(-) create mode 100644 corpus/16_50samples.wav create mode 100644 corpus/16bit.wav create mode 100644 corpus/24_50samples.wav create mode 100644 corpus/24bit.wav create mode 100644 corpus/headers_zerosamples.wav create mode 100644 corpus/u8bit.wav create mode 100644 fuzz.go diff --git a/corpus/16_50samples.wav b/corpus/16_50samples.wav new file mode 100644 index 0000000000000000000000000000000000000000..09dc1fd37b16e723ac1df3615d74d48195484ecb GIT binary patch literal 144 zcmWIYbaU%qU|;bEVD|MOby}f>1Huu+VqI4Khnb8&1dlf zFY{9SAQx+DTf@?|Numc%DH5NSFn4I;MZq|~Ok2aN65NH1<{MA|xz&aht3FCI@1xMX UL${q*N&!cZt8adr#<0KdK8cGj_y7O^ literal 0 HcmV?d00001 diff --git a/corpus/u8bit.wav b/corpus/u8bit.wav new file mode 100644 index 0000000000000000000000000000000000000000..27debc9466085b42112861492b0b0a01be23096e GIT binary patch literal 45 scmWIYbaPW>U|