mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-22 23:18:51 +00:00
[C++, JSON] Fix nullptr access when reading a key with a default value. (#6375)
This commit fixes handling of default and NULL `key` fields in `Parser::ParseVector` (#5928). The JSON generator updated. It outputs `key` fields even if the `--force-defaults` option is inactive. Additional test cases for `key` added.
This commit is contained in:
@@ -75,4 +75,10 @@
|
||||
testhashu32_fnv1a: "This string is being hashed!",
|
||||
testhashs64_fnv1a: "This string is being hashed!",
|
||||
testhashu64_fnv1a: "This string is being hashed!",
|
||||
testarrayofsortedstruct:[
|
||||
{id:5,distance:12}, {id:1,distance:21}, {id:0,distance:45}
|
||||
],
|
||||
scalar_key_sorted_tables:[
|
||||
{id:"hit",val:10,count:1}, {id:"miss",val:0,count:0}
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user