json 2.17.0 → 2.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/ext/json/ext/parser/parser.c +3 -1
- data/lib/json/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: e803f3f9e7d45dba43221559016a34d8cc9e3ab491e39137d17b614713edb710
|
|
4
|
+
data.tar.gz: 429e3465eada0c9d985c94dbd13bbdd8d57e4b62cf7cf06273f22e136dafb4a8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: adebc7ed56efc6651e23730720ea9f365e434ae234d70620469ae3e8a9240ada46f0ce7d6982f30a1301104fd2b033eaac57950c2657cfc5b2e7b79ffe73a925
|
|
7
|
+
data.tar.gz: 346c97276881d404414359ce0893fd16fe35d6413377b4ad3d71448a9f5fb919a61ef7630fc186a6aeef11fa6422273d0625eccfdd6a57a00c98c0e470c7ec92
|
data/CHANGES.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
### Unreleased
|
|
4
4
|
|
|
5
|
+
### 2025-12-04 (2.17.1)
|
|
6
|
+
|
|
7
|
+
* Fix a regression in parsing of unicode surogate pairs (`\uXX\uXX`) that could cause an invalid string to be returned.
|
|
8
|
+
|
|
5
9
|
### 2025-12-03 (2.17.0)
|
|
6
10
|
|
|
7
11
|
* Improve `JSON.load` and `JSON.unsafe_load` to allow passing options as second argument.
|
|
@@ -651,7 +651,9 @@ static inline const char *json_next_backslash(const char *pe, const char *string
|
|
|
651
651
|
positions->size--;
|
|
652
652
|
const char *next_position = positions->positions[0];
|
|
653
653
|
positions->positions++;
|
|
654
|
-
|
|
654
|
+
if (next_position >= pe) {
|
|
655
|
+
return next_position;
|
|
656
|
+
}
|
|
655
657
|
}
|
|
656
658
|
|
|
657
659
|
if (positions->has_more) {
|
data/lib/json/version.rb
CHANGED