Wouter van Oortmerssen | fe9787e | 2016-05-23 16:35:20 -0700 | [diff] [blame] | 1 | // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | #include <stddef.h> |
| 5 | #include <stdint.h> |
| 6 | #include <string> |
| 7 | |
Wouter van Oortmerssen | a98bff3 | 2016-04-22 18:29:22 -0700 | [diff] [blame] | 8 | #include "monster_test_generated.h" |
Wouter van Oortmerssen | fe9787e | 2016-05-23 16:35:20 -0700 | [diff] [blame] | 9 | |
| 10 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { |
| 11 | flatbuffers::Verifier verifier(data, size); |
| 12 | MyGame::Example::VerifyMonsterBuffer(verifier); |
| 13 | return 0; |
| 14 | } |