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
/
UncaughtException.cpp
blob
35df4a9ce326ac351ea25a7de6995714e77f1d2a
1
#include <cstdint>
2
#include <vector>
3
4
extern
"C"
int
LLVMFuzzerTestOneInput
(
const
std
::
uint8_t
*
data
,
size_t
size
) {
5
std
::
vector
<
uint8_t
>
v
;
6
// Intentionally throw std::length_error
7
v
.
reserve
(
static_cast
<
uint64_t
>(-
1
));
8
9
return
0
;
10
}