diff options
Diffstat (limited to 'test/fuzzer/AbsNegAndConstant64Test.cpp')
-rw-r--r-- | test/fuzzer/AbsNegAndConstant64Test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/fuzzer/AbsNegAndConstant64Test.cpp b/test/fuzzer/AbsNegAndConstant64Test.cpp index abeb784e9a11..0ba80b61d033 100644 --- a/test/fuzzer/AbsNegAndConstant64Test.cpp +++ b/test/fuzzer/AbsNegAndConstant64Test.cpp @@ -14,7 +14,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { uint64_t y; memcpy(&x, Data, sizeof(x)); memcpy(&y, Data + sizeof(x), sizeof(y)); - if (llabs(x) < 0 && y == 0xbaddcafedeadbeefULL) { + volatile int64_t abs_x = llabs(x); + if (abs_x < 0 && y == 0xbaddcafedeadbeefULL) { printf("BINGO; Found the target, exiting; x = 0x%lx y 0x%lx\n", x, y); fflush(stdout); exit(1); |