Add simple libfuzzer based test.

This tests the verifier and the parser.

Tested: on Linux.
Bug: 27230459
Change-Id: I3417faba9385dc941199c57a08d8a50c2faec1aa
This commit is contained in:
Wouter van Oortmerssen
2016-04-22 18:29:22 -07:00
parent b922a3c952
commit a98bff3ea1
60 changed files with 77 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
#include <stdint.h>
#include <string>
#include "third_party/flatbuffers/tests/monster_test_generated.h"
#include "monster_test_generated.h"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
flatbuffers::Verifier verifier(data, size);