summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/test/AbsNegAndConstantTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Fuzzer/test/AbsNegAndConstantTest.cpp')
-rw-r--r--llvm/lib/Fuzzer/test/AbsNegAndConstantTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/test/AbsNegAndConstantTest.cpp b/llvm/lib/Fuzzer/test/AbsNegAndConstantTest.cpp
index e9d983ff1eb..049db0a60c3 100644
--- a/llvm/lib/Fuzzer/test/AbsNegAndConstantTest.cpp
+++ b/llvm/lib/Fuzzer/test/AbsNegAndConstantTest.cpp
@@ -16,6 +16,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
memcpy(&y, Data + sizeof(x), sizeof(y));
if (abs(x) < 0 && y == 0xbaddcafe) {
printf("BINGO; Found the target, exiting; x = 0x%x y 0x%x\n", x, y);
+ fflush(stdout);
exit(1);
}
return 0;
OpenPOWER on IntegriCloud