[libFuzzer] don't print bogus error message

llvm-svn: 277940
This commit is contained in:
Kostya Serebryany 2016-08-06 21:23:29 +00:00
parent bc573ca1b8
commit ff1f2107ec
1 changed files with 3 additions and 2 deletions

View File

@ -129,8 +129,9 @@ class CoverageController {
C->PcBufferPos = NewPcBufferPos;
}
if (NewPcBufferPos >= PcBufferLen) {
Printf("ERROR: PC buffer overflow.\n");
if (PcBufferLen && NewPcBufferPos >= PcBufferLen) {
Printf("ERROR: PC buffer overflow\n");
_Exit(1);
}
return Res;