Skip to content

Commit

Permalink
Added missing EndTable() call to VerifyObject() (google#4468)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
stefan301 authored and aardappel committed Oct 23, 2017
1 parent 97face1 commit 6bb0a72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/reflection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,9 @@ bool VerifyObject(flatbuffers::Verifier &v,
}
}

if (!v.EndTable())
return false;

return true;
}

Expand Down

0 comments on commit 6bb0a72

Please sign in to comment.