mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-05 04:58:57 +00:00
Fixed FlexBufferBuilder asserting on duplicate keys
This commit is contained in:
@@ -2857,6 +2857,8 @@ CheckedError Parser::ParseFlexBufferValue(flexbuffers::Builder *builder) {
|
||||
});
|
||||
ECHECK(err);
|
||||
builder->EndMap(start);
|
||||
if (builder->HasDuplicateKeys())
|
||||
return Error("FlexBuffers map has duplicate keys");
|
||||
break;
|
||||
}
|
||||
case '[': {
|
||||
|
||||
Reference in New Issue
Block a user