[compiler-rt] 66c882e - Revert "[libFuzzer] Fix value-profile-load test."
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 20 17:49:25 PDT 2020
Author: Vitaly Buka
Date: 2020-08-20T17:49:12-07:00
New Revision: 66c882e529a388465463e80de93b4f353a9391a8
URL: https://github.com/llvm/llvm-project/commit/66c882e529a388465463e80de93b4f353a9391a8
DIFF: https://github.com/llvm/llvm-project/commit/66c882e529a388465463e80de93b4f353a9391a8.diff
LOG: Revert "[libFuzzer] Fix value-profile-load test."
D86247 fails on Windows.
This reverts commit 428bebaf10e177db5e42206ca8f871f0bcbef058.
Added:
Modified:
compiler-rt/test/fuzzer/LoadTest.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/fuzzer/LoadTest.cpp b/compiler-rt/test/fuzzer/LoadTest.cpp
index 906c6216c850..9cf101542cb4 100644
--- a/compiler-rt/test/fuzzer/LoadTest.cpp
+++ b/compiler-rt/test/fuzzer/LoadTest.cpp
@@ -14,10 +14,10 @@ const int kArraySize = 1234567;
int array[kArraySize];
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
- if (Size != 8)
- return 0;
+ if (Size < 8) return 0;
uint64_t a = 0;
memcpy(&a, Data, 8);
Sink = array[a % (kArraySize + 1)];
return 0;
}
+
More information about the llvm-commits
mailing list