Revert "[libFuzzer] Fix value-profile-load test."

D86247 fails on Windows.

This reverts commit 428bebaf10.
This commit is contained in:
Vitaly Buka 2020-08-20 17:47:41 -07:00
parent 7ac737e56b
commit 66c882e529
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}