Increase # of tables threshold in flatbuffer verifier
We were able to encounter AOS configs that exceeded this threshold...
Change-Id: Iac5fe8b2d671d82775701a255f9fee94f9326ff8
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/config_flattener.cc b/aos/config_flattener.cc
index 5bd3cf7..b089d24 100644
--- a/aos/config_flattener.cc
+++ b/aos/config_flattener.cc
@@ -45,7 +45,9 @@
aos::FlatbufferDetachedBuffer<Configuration> merged_config =
configuration::MergeConfiguration(config, schemas);
// In case we've done something overly weird to the flatbuffer...
- CHECK(merged_config.Verify());
+ CHECK(merged_config.Verify())
+ << ": Failed to verify flatbuffer. NOTE: Very large flatbuffers could be "
+ "exceeding max_tables in flatbuffers::Verifier.";
const std::string merged_config_json =
FlatbufferToJson(&merged_config.message(), {.multi_line = true});