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:
parent
49c44706ea
commit
30ef81698e
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user