json 2.19.2 → 2.19.3
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 +5 -1
- 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: 3182d9103a2ee3b673b923a4789e947a9cddb850f870f7fdb54d93f3bd1a5493
|
|
4
|
+
data.tar.gz: 0ee85345c9e1c99223f9cc3e859e4a7295f40f88461ca0f47059cfcc4e80154c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dedf64066bc4017b977330468b01613ce1d4a78c267b38519b7ef2705368e5d73187b64ca99777afaf900cc5f58523a722833e83c0ee011944bf15b34c33479e
|
|
7
|
+
data.tar.gz: c187fa755e0a7bd2e2ddb74498062a8138ac4882630713e3372886b5648a22a453b1a388174038b2d4144a724e1d44d5b444b190e49e3e7eb2047d8b98eef0a8
|
data/CHANGES.md
CHANGED
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
### Unreleased
|
|
4
4
|
|
|
5
|
-
### 2026-03-
|
|
5
|
+
### 2026-03-25 (2.19.3)
|
|
6
|
+
|
|
7
|
+
* Fix handling of unescaped control characters preceeded by a backslash.
|
|
8
|
+
|
|
9
|
+
### 2026-03-18 (2.19.2)
|
|
6
10
|
|
|
7
11
|
* Fix a format string injection vulnerability in `JSON.parse(doc, allow_duplicate_key: false)`.
|
|
8
12
|
|
|
@@ -758,7 +758,9 @@ NOINLINE(static) VALUE json_string_unescape(JSON_ParserState *state, JSON_Parser
|
|
|
758
758
|
}
|
|
759
759
|
raise_parse_error_at("invalid ASCII control character in string: %s", state, pe - 1);
|
|
760
760
|
}
|
|
761
|
-
}
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
if (config->allow_invalid_escape) {
|
|
762
764
|
APPEND_CHAR(*pe);
|
|
763
765
|
} else {
|
|
764
766
|
raise_parse_error_at("invalid escape character in string: %s", state, pe - 1);
|
data/lib/json/version.rb
CHANGED