Turn off nested FlatBuffers/FlexBuffers for the fuzzer

this is a temporary fix to allow the fuzzer to work until the real fix of adding a verifier for this is added.
This commit is contained in:
Wouter van Oortmerssen
2021-11-22 16:28:04 -08:00
parent c05f6783a6
commit 4d0e9a8706
3 changed files with 10 additions and 2 deletions

View File

@@ -80,6 +80,10 @@ std::string do_test(const flatbuffers::IDLOptions &opts,
flatbuffers::Verifier verifier(parser.builder_.GetBufferPointer(),
parser.builder_.GetSize());
TEST_EQ(true, MyGame::Example::VerifyMonsterBuffer(verifier));
// FIXME: these are currently not being properly verified, so turn them off
// for fuzzing until they are.
parser.opts.json_nested_flatbuffers = false;
parser.opts.json_nested_flexbuffers = false;
TEST_ASSERT(
GenerateText(parser, parser.builder_.GetBufferPointer(), &jsongen));
} else if (check_parser) {