oj 3.7.3 → 3.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/oj/parse.c +8 -1
- data/ext/oj/sparse.c +7 -0
- data/lib/oj/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63afe8de8789be3dcae927133f970ce4c1ebcf2a95e559fd74d001002f21a976
|
4
|
+
data.tar.gz: 241ad4cdb767fbaa9b39eb3772748db8217d0a3bf9545300ff63d16722abf826
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8b9183590f1ca6673d53c5e885afa958164ea0b7ad1e6ade77d5527ecad0d56ea2e9738daa85707c1f2d5fedb7c23779bc4b932a4345ca9f63e8e6520e579b5
|
7
|
+
data.tar.gz: 3a51f9db59bdf848f16eed3ddc24ebe1c9d96d408fd0ec11f513c335c85deb79cf2c6b2c7f587f2acc9f9fa77510f51094331fba1150993b6d396b8f4774336e
|
data/ext/oj/parse.c
CHANGED
@@ -646,8 +646,15 @@ oj_parse2(ParseInfo pi) {
|
|
646
646
|
read_str(pi);
|
647
647
|
break;
|
648
648
|
//case '+':
|
649
|
-
case '-':
|
650
649
|
case '+':
|
650
|
+
if (CompatMode == pi->options.mode) {
|
651
|
+
oj_set_error_at(pi, oj_parse_error_class, __FILE__, __LINE__, "unexpected character");
|
652
|
+
return;
|
653
|
+
}
|
654
|
+
pi->cur--;
|
655
|
+
read_num(pi);
|
656
|
+
break;
|
657
|
+
case '-':
|
651
658
|
case '0':
|
652
659
|
case '1':
|
653
660
|
case '2':
|
data/ext/oj/sparse.c
CHANGED
@@ -664,6 +664,13 @@ oj_sparse2(ParseInfo pi) {
|
|
664
664
|
read_str(pi);
|
665
665
|
break;
|
666
666
|
case '+':
|
667
|
+
if (CompatMode == pi->options.mode) {
|
668
|
+
oj_set_error_at(pi, oj_parse_error_class, __FILE__, __LINE__, "unexpected character");
|
669
|
+
return;
|
670
|
+
}
|
671
|
+
pi->cur--;
|
672
|
+
read_num(pi);
|
673
|
+
break;
|
667
674
|
case '-':
|
668
675
|
case '0':
|
669
676
|
case '1':
|
data/lib/oj/version.rb
CHANGED