Bug #16698 ยป ruby-2-6-json-cve-2020-10663.patch
ext/json/parser/parser.c | ||
---|---|---|
} else {
|
||
json->max_nesting = 100;
|
||
json->allow_nan = 0;
|
||
json->create_additions = 1;
|
||
json->create_additions = 0;
|
||
json->create_id = rb_funcall(mJSON, i_create_id, 0);
|
||
json->object_class = Qnil;
|
||
json->array_class = Qnil;
|
ext/json/parser/parser.rl | ||
---|---|---|
} else {
|
||
json->max_nesting = 100;
|
||
json->allow_nan = 0;
|
||
json->create_additions = 1;
|
||
json->create_additions = 0;
|
||
json->create_id = rb_funcall(mJSON, i_create_id, 0);
|
||
json->object_class = Qnil;
|
||
json->array_class = Qnil;
|