repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
compiler-rt
/
test
/
fuzzer
/
UninitializedStrlen.cpp
blob
5a4e778df94bf4e88a2b41b5d6c911c7584862ea
1
#include <cstdint>
2
#include <cstring>
3
4
volatile
size_t
Sink
;
5
6
extern
"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
(
uninit
);
11
}
12
return
0
;
13
}
14