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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 747237eb2b9348d361e6e93684f81381b4f0dcf0cd36971bc809ac042ce295bc
4
- data.tar.gz: 1c6243010258fd2077acf63c5b372babce9a32e789630279bc8b129fc2deef5d
3
+ metadata.gz: 3182d9103a2ee3b673b923a4789e947a9cddb850f870f7fdb54d93f3bd1a5493
4
+ data.tar.gz: 0ee85345c9e1c99223f9cc3e859e4a7295f40f88461ca0f47059cfcc4e80154c
5
5
  SHA512:
6
- metadata.gz: b43b4ca3d570a3c4051a319f9eb2d2807a6b2567f43cedf8bc21d8208289a3f3a275dc650353cd6ef4bd3e2022afcf73f17164fda51081134e11ac5172374459
7
- data.tar.gz: 82a96b04fa36bb5b0ab72868d67e95cfcc8cc8d3f0a045a1caf8045b090e5cf46647b664accf7c657073020847cd8ce6ad28535d14536e214dcaab21b6aa4c17
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-08 (2.19.2)
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
- } else if (config->allow_invalid_escape) {
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JSON
4
- VERSION = '2.19.2'
4
+ VERSION = '2.19.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.19.2
4
+ version: 2.19.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank