[fuzzer] Fix mistakes in the `parser` and `scalar` fuzzers. (#6314)
authorVladimir Glavnyy <31897320+vglavnyy@users.noreply.github.com>
Mon, 7 Dec 2020 19:47:33 +0000 (02:47 +0700)
committerGitHub <noreply@github.com>
Mon, 7 Dec 2020 19:47:33 +0000 (11:47 -0800)
commitbc7eb8adeb1ce73b13bacdf7a6904de27a1e5913
tree4b17a902b6c182fbe1e7c7401a25d6c1a22d6e16
parentfc960f367082c096360433bf9dd4760ebc5df4f4
[fuzzer] Fix mistakes in the `parser` and `scalar` fuzzers. (#6314)

The flatbuffers::Parser::Parse() isn't an idempotent method for schema parsing.
This commit removes a wrong for-loop that tried to check the same schema twice.
tests/fuzzer/flatbuffers_parser_fuzzer.cc
tests/fuzzer/flatbuffers_scalar_fuzzer.cc