Commit 6bb0a728 authored by stefan301's avatar stefan301 Committed by Wouter van Oortmerssen

Added missing EndTable() call to VerifyObject() (#4468)

VerifyObject called VerifyTableStart() but not EndTable(). This made Verifier::VerifyComplexity() increase depth_ with each table, not with the depth of tables.

https://groups.google.com/forum/#!topic/flatbuffers/OpxtW5UFAdg
parent 97face15
...@@ -700,6 +700,9 @@ bool VerifyObject(flatbuffers::Verifier &v, ...@@ -700,6 +700,9 @@ bool VerifyObject(flatbuffers::Verifier &v,
} }
} }
if (!v.EndTable())
return false;
return true; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment