diff --git a/include/flatbuffers/flatbuffers.h b/include/flatbuffers/flatbuffers.h index 228c879ab..a4acdf96a 100644 --- a/include/flatbuffers/flatbuffers.h +++ b/include/flatbuffers/flatbuffers.h @@ -2230,6 +2230,7 @@ class Verifier FLATBUFFERS_FINAL_CLASS { return true; } + __supress_ubsan__("unsigned-integer-overflow") bool VerifyTableStart(const uint8_t *table) { // Check the vtable offset. auto tableo = static_cast(table - buf_);