mirror of
https://github.com/msgpack/msgpack-c
synced 2026-06-08 16:11:40 +00:00
add the fuzzer from oss-fuzz and a test that exercises it
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "../fuzz/unpack_pack_fuzzer.cc"
|
||||
|
||||
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size);
|
||||
|
||||
TEST(FUZZ_UNPACK_PACK_FUZZER, works)
|
||||
{
|
||||
EXPECT_EQ(0, LLVMFuzzerTestOneInput(0, 0));
|
||||
}
|
||||
Reference in New Issue
Block a user