OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28cd01c
)
[libFuzzer] fix a failure that occurs when running individual inputs
author
Kostya Serebryany
<kcc@google.com>
Sat, 28 May 2016 04:19:46 +0000
(
04:19
+0000)
committer
Kostya Serebryany
<kcc@google.com>
Sat, 28 May 2016 04:19:46 +0000
(
04:19
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271095
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Fuzzer/FuzzerLoop.cpp
patch
|
blob
|
history
diff --git
a/lib/Fuzzer/FuzzerLoop.cpp
b/lib/Fuzzer/FuzzerLoop.cpp
index
6f10c63
..
fb75a9b
100644
(file)
--- a/
lib/Fuzzer/FuzzerLoop.cpp
+++ b/
lib/Fuzzer/FuzzerLoop.cpp
@@
-175,6
+175,7
@@
void Fuzzer::StaticDeathCallback() {
}
void Fuzzer::DumpCurrentUnit(const char *Prefix) {
+ if (!CurrentUnitData) return; // Happens when running individual inputs.
size_t UnitSize = CurrentUnitSize;
if (UnitSize <= kMaxUnitSizeToPrint) {
PrintHexArray(CurrentUnitData, UnitSize, "\n");