Add fuzzer test for scalar numbers in json. (#4996)

* Add fuzzer test for scalar numbers in json. Grammar-based regex used to check correctness.

* Fix conversation
This commit is contained in:
Vladimir Glavnyy
2018-10-23 05:44:18 +07:00
committed by Wouter van Oortmerssen
parent efbb11e093
commit 55b30827f2
12 changed files with 619 additions and 80 deletions

View File

@@ -1914,7 +1914,7 @@ class Verifier FLATBUFFERS_FINAL_CLASS {
#endif
// clang-format on
{
assert(size_ < FLATBUFFERS_MAX_BUFFER_SIZE);
FLATBUFFERS_ASSERT(size_ < FLATBUFFERS_MAX_BUFFER_SIZE);
}
// Central location where any verification failures register.