mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-29 22:12:02 +00:00
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:
committed by
Wouter van Oortmerssen
parent
97face1527
commit
6bb0a728d3
@@ -700,6 +700,9 @@ bool VerifyObject(flatbuffers::Verifier &v,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!v.EndTable())
|
||||||
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user