Project

General

Profile

Bug #16698 ยป ruby-2-6-json-cve-2020-10663.patch

jeremyevans0 (Jeremy Evans), 03/19/2020 05:35 PM

View differences:

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;
    (1-1/1)