projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49d6913
)
[libFuzzer] make -test_single_input more reliable: make sure the input's size is...
author
Kostya Serebryany
<kcc@google.com>
Tue, 3 Nov 2015 18:57:25 +0000
(18:57 +0000)
committer
Kostya Serebryany
<kcc@google.com>
Tue, 3 Nov 2015 18:57:25 +0000
(18:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251961
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Fuzzer/FuzzerDriver.cpp
patch
|
blob
|
history
diff --git
a/lib/Fuzzer/FuzzerDriver.cpp
b/lib/Fuzzer/FuzzerDriver.cpp
index 821d34cccc2bf906f000118609a8786625093920..363abc482cbba6fad1e019961ee5ef29401db05b 100644
(file)
--- a/
lib/Fuzzer/FuzzerDriver.cpp
+++ b/
lib/Fuzzer/FuzzerDriver.cpp
@@
-184,7
+184,9
@@
static int RunInMultipleProcesses(const std::vector<std::string> &Args,
int RunOneTest(Fuzzer *F, const char *InputFilePath) {
Unit U = FileToVector(InputFilePath);
- F->ExecuteCallback(U);
+ Unit PreciseSizedU(U);
+ assert(PreciseSizedU.size() == PreciseSizedU.capacity());
+ F->ExecuteCallback(PreciseSizedU);
return 0;
}