MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / VerifyComplexity

Function VerifyComplexity

native/thirdpart/flatbuffers/flatbuffers.h:2461–2465  ·  view source on GitHub ↗

Called at the start of a table to increase counters measuring data structure depth and amount, and possibly bails out with false if limits set by the constructor have been hit. Needs to be balanced with EndTable().

Source from the content-addressed store, hash-verified

2459 // limits set by the constructor have been hit. Needs to be balanced
2460 // with EndTable().
2461 bool VerifyComplexity() {
2462 depth_++;
2463 num_tables_++;
2464 return Check(depth_ <= max_depth_ && num_tables_ <= max_tables_);
2465 }
2466
2467 // Called at the end of a table to pop the depth count.
2468 bool EndTable() {

Callers 1

VerifyTableStartFunction · 0.85

Calls 1

CheckFunction · 0.85

Tested by

no test coverage detected