11 lines
241 B
C++
11 lines
241 B
C++
|
#include <cstdint>
|
||
|
#include <vector>
|
||
|
|
||
|
extern "C" int LLVMFuzzerTestOneInput(const std::uint8_t *data, size_t size) {
|
||
|
std::vector<uint8_t> v;
|
||
|
// Intentionally throw std::length_error
|
||
|
v.reserve(static_cast<uint64_t>(-1));
|
||
|
|
||
|
return 0;
|
||
|
}
|