Allow trailing comma in objects

This commit is contained in:
Jacob Bundgaard
2019-10-16 17:07:41 +02:00
committed by Christopher Dunn
parent d2e6a971f4
commit 01db7b7430
7 changed files with 20 additions and 2 deletions

View File

@@ -40,6 +40,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
builder.settings_["rejectDupKeys_"] = hash_settings & (1 << 7);
builder.settings_["allowSpecialFloats_"] = hash_settings & (1 << 8);
builder.settings_["collectComments"] = hash_settings & (1 << 9);
builder.settings_["allowTrailingCommas_"] = hash_settings & (1 << 10);
std::unique_ptr<Json::CharReader> reader(builder.newCharReader());