[libFuzzer] fix a bug when running a single unit of N bytes with -max_len=M, M<N...
authorKostya Serebryany <kcc@google.com>
Tue, 30 Aug 2016 14:52:05 +0000 (14:52 +0000)
committerKostya Serebryany <kcc@google.com>
Tue, 30 Aug 2016 14:52:05 +0000 (14:52 +0000)
commita016a45d60ae5940b360b24880f8c271f03ae359
treed97c7b8ac2f99db89dadf65b73244a4e479f33bf
parentb5d90e57dcbb23e09de15ed5e1d7b3b437d13cbb
[libFuzzer] fix a bug when running a single unit of N bytes with -max_len=M, M<N, caused a buffer overflow

llvm-svn: 280098
llvm/lib/Fuzzer/FuzzerDriver.cpp
llvm/lib/Fuzzer/test/fuzzer-singleinputs.test