Fix bug in fuzzstub.
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>
Thu, 1 Oct 2015 14:38:10 +0000 (17:38 +0300)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Thu, 1 Oct 2015 14:38:10 +0000 (17:38 +0300)
commitbe9c9bb55cea9ddac4c47041a5875f824629d03e
treea2806787703758cb1f3b98b402739cde21c7f83d
parent6b63b26404064272394740f6b7354e75c5805cec
Fix bug in fuzzstub.

The fread call always returned a message length of 1 byte,
making the fuzz stub used for external fuzzers useless. The
normal fuzztest.c was unaffected.

Bug found using afl-fuzz.
tests/fuzztest/fuzzstub.c