summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/test/ShrinkValueProfileTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Fuzzer/test/ShrinkValueProfileTest.cpp')
-rw-r--r--llvm/lib/Fuzzer/test/ShrinkValueProfileTest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Fuzzer/test/ShrinkValueProfileTest.cpp b/llvm/lib/Fuzzer/test/ShrinkValueProfileTest.cpp
index 9ff5b19c7b6..026b8ce2659 100644
--- a/llvm/lib/Fuzzer/test/ShrinkValueProfileTest.cpp
+++ b/llvm/lib/Fuzzer/test/ShrinkValueProfileTest.cpp
@@ -12,10 +12,11 @@ static volatile uint32_t Sink;
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
if (Size < sizeof(uint32_t)) return 0;
- uint32_t X;
+ uint32_t X, Y;
size_t Offset = Size < 8 ? 0 : Size / 2;
memcpy(&X, Data + Offset, sizeof(uint32_t));
- Sink = X == 0xAABBCCDD;
+ memcpy(&Y, "FUZZ", sizeof(uint32_t));
+ Sink = X == Y;
return 0;
}
OpenPOWER on IntegriCloud