From 6bb0a728d3d6039e26528f5a3c15309a8dfc13d2 Mon Sep 17 00:00:00 2001 From: stefan301 <32997632+stefan301@users.noreply.github.com> Date: Mon, 23 Oct 2017 18:15:18 +0200 Subject: [PATCH] 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 --- src/reflection.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/reflection.cpp b/src/reflection.cpp index 2f05a34c4..6736ec7b0 100644 --- a/src/reflection.cpp +++ b/src/reflection.cpp @@ -700,6 +700,9 @@ bool VerifyObject(flatbuffers::Verifier &v, } } + if (!v.EndTable()) + return false; + return true; }