i2pd/fuzzing/fuzz-IdentityEx.cc
Chad Fraleigh 5f6bbd3eb9
Added undefined behavior sanitizer.
Combined common sanitizer flags.
Added fuzzers.
2023-07-10 18:35:34 -07:00

21 lines
263 B
C++

#include <stdint.h>
#include <stddef.h>
#include <Identity.h>
#include "fuzzing.h"
bool
fuzzing_testinput(const uint8_t * data, size_t size)
{
i2p::data::IdentityEx * ident;
ident = new i2p::data::IdentityEx(data, size);
delete ident;
return true;
}