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
This commit is contained in:
stefan301 2017-10-23 18:15:18 +02:00 committed by Wouter van Oortmerssen
parent 97face1527
commit 6bb0a728d3
1 changed files with 3 additions and 0 deletions

View File

@ -700,6 +700,9 @@ bool VerifyObject(flatbuffers::Verifier &v,
}
}
if (!v.EndTable())
return false;
return true;
}