1#include <cstdint>
2#include <cstring>
3
4volatile size_t Sink;
5
6extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
7 if (Size < 4) return 0;
8 if (Data[0] == 'F' && Data[1] == 'U' && Data[2] == 'Z' && Data[3] == 'Z') {
9 char uninit[7];
10 Sink = strlen(s: uninit);
11 }
12 return 0;
13}
14
15

source code of compiler-rt/test/fuzzer/UninitializedStrlen.cpp