1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

[libFuzzer] fix a failure that occurs when running individual inputs

llvm-svn: 271095
This commit is contained in:
Kostya Serebryany 2016-05-28 04:19:46 +00:00
parent 49c44706ea
commit 30ef81698e

View File

@ -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");