Skip to content

Commit 66c882e

Browse files
committed
Revert "[libFuzzer] Fix value-profile-load test."
D86247 fails on Windows. This reverts commit 428beba.
1 parent 7ac737e commit 66c882e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/test/fuzzer/LoadTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ const int kArraySize = 1234567;
1414
int array[kArraySize];
1515

1616
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
17-
if (Size != 8)
18-
return 0;
17+
if (Size < 8) return 0;
1918
uint64_t a = 0;
2019
memcpy(&a, Data, 8);
2120
Sink = array[a % (kArraySize + 1)];
2221
return 0;
2322
}
23+

0 commit comments

Comments
 (0)