erb 5.1.0-java → 5.1.1-java

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: 906097ee8426c409c0bafef6b267a71de1569f59ebb7c9fe3fdb0bad13dfe1d8
4
- data.tar.gz: ff432d8909d38bf3929ea288157d9b7bde86b0e3555f317f9b08f80044794753
3
+ metadata.gz: 9ae4f2394611333d868bc58eb8a5e9ee91695977c9908712ff7e9c4eedadb45a
4
+ data.tar.gz: e69dc7d189cc383c3000883ba5b0fa16c7955ddea21728948da0fce269877891
5
5
  SHA512:
6
- metadata.gz: d21aeccd08ca1811871bd90b03447398c0af88fa1db59bf9ccf245c24112e08fd6bd4160e3db3b09086b0357950ff64511bbfd75b21690f35530afc89b064b6f
7
- data.tar.gz: 07f08d822f6d105bc816f27f19d233cac52726d35655fc4eb4aedab04fcd255a97543a77029130a4205edc1c5c0ca2e6edf60005b70bed4124a611de12410665
6
+ metadata.gz: 0a3be9012c56f58945f2204d32d728085888d7591aededbccfebad0aa89333e569d93c18112aeb7e14f732d0b35350ab10c960f2e576eeaeb4f17746ac7cfa47
7
+ data.tar.gz: 3fd83657c598438f03fb73c78498b18bf3ae51d8d3c18dae9d7089ee42a704658ce3db11f054142c41b2b612c8f7255dcc2a41c16552744dddc27463d7ccc5eb
data/NEWS.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 5.1.1
4
+
5
+ * Fix integer overflow that is introduced at v5.1.0
6
+
3
7
  ## 5.1.0
4
8
 
5
9
  * html_escape: Avoid buffer allocation for strings with no escapable character https://github.com/ruby/erb/pull/87
@@ -49,7 +49,7 @@ optimized_escape_html(VALUE str)
49
49
  const unsigned char c = *cstr++;
50
50
  uint8_t len = html_escape_table[c].len;
51
51
  if (len) {
52
- uint16_t segment_len = cstr - segment_start - 1;
52
+ size_t segment_len = cstr - segment_start - 1;
53
53
  if (!buf) {
54
54
  buf = ALLOCV_N(char, vbuf, escaped_length(str));
55
55
  dest = buf;
@@ -64,7 +64,7 @@ optimized_escape_html(VALUE str)
64
64
  }
65
65
  }
66
66
  if (buf) {
67
- uint16_t segment_len = cstr - segment_start;
67
+ size_t segment_len = cstr - segment_start;
68
68
  if (segment_len) {
69
69
  memcpy(dest, segment_start, segment_len);
70
70
  dest += segment_len;
data/lib/erb/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  class ERB
3
3
  # The string \ERB version.
4
- VERSION = '5.1.0'
4
+ VERSION = '5.1.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erb
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.1.1
5
5
  platform: java
6
6
  authors:
7
7
  - Masatoshi SEKI
8
8
  - Takashi Kokubun
9
9
  bindir: libexec
10
10
  cert_chain: []
11
- date: 2025-10-11 00:00:00.000000000 Z
11
+ date: 2025-10-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: An easy to use but powerful templating system for Ruby.
14
14
  email: