Skip to content
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/reflection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ static bool VerifyVector(flatbuffers::Verifier& v,
auto type_vec = table.GetPointer<Vector<uint8_t>*>(vec_field.offset() -
sizeof(voffset_t));
if (!v.VerifyVector(type_vec)) return false;
if (!type_vec) return true;
Comment thread
jtdavis777 marked this conversation as resolved.
Outdated
if (type_vec->size() != vec->size()) return false;
for (uoffset_t j = 0; j < vec->size(); j++) {
// get union type from the prev field
Expand Down Expand Up @@ -800,4 +801,4 @@ bool VerifySizePrefixed(const reflection::Schema& schema,
/*required=*/true);
}

} // namespace flatbuffers
} // namespace flatbuffers