zlib 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/zlib/zlib.c +7 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38b96853c00eb5d1b6b2ad47512fc97d4f4c589e77106dd6cc7f501a3de7ce0c
|
4
|
+
data.tar.gz: 8fc6e8d0207cc631d85a2cb248502263faf6b2184fab4de0c762d360c95b482f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b9a862a80f4b7146e5d918b917990349ed3be78c8636346636f787b6955c764406717330d1206ec8ea9347149ebe544d03e571c8e9754840f1fd6ac38b794df
|
7
|
+
data.tar.gz: ca43a10903aa4c981f8de059fd12c695ec4a31b2e8c5ccf34161f828f059660108d7406851c416f90eca9d54f07332cab606c305f566b5b0dac805a94b57e573
|
data/ext/zlib/zlib.c
CHANGED
@@ -25,7 +25,7 @@
|
|
25
25
|
# define VALGRIND_MAKE_MEM_UNDEFINED(p, n) 0
|
26
26
|
#endif
|
27
27
|
|
28
|
-
#define RUBY_ZLIB_VERSION "2.1.
|
28
|
+
#define RUBY_ZLIB_VERSION "2.1.1"
|
29
29
|
|
30
30
|
#ifndef RB_PASS_CALLED_KEYWORDS
|
31
31
|
# define rb_class_new_instance_kw(argc, argv, klass, kw_splat) rb_class_new_instance(argc, argv, klass)
|
@@ -4199,17 +4199,17 @@ gzreader_charboundary(struct gzfile *gz, long n)
|
|
4199
4199
|
{
|
4200
4200
|
char *s = RSTRING_PTR(gz->z.buf);
|
4201
4201
|
char *e = s + ZSTREAM_BUF_FILLED(&gz->z);
|
4202
|
-
char *p = rb_enc_left_char_head(s, s + n, e, gz->enc);
|
4202
|
+
char *p = rb_enc_left_char_head(s, s + n - 1, e, gz->enc);
|
4203
4203
|
long l = p - s;
|
4204
4204
|
if (l < n) {
|
4205
|
-
|
4206
|
-
if (MBCLEN_NEEDMORE_P(
|
4207
|
-
if ((l = gzfile_fill(gz,
|
4205
|
+
int n_bytes = rb_enc_precise_mbclen(p, e, gz->enc);
|
4206
|
+
if (MBCLEN_NEEDMORE_P(n_bytes)) {
|
4207
|
+
if ((l = gzfile_fill(gz, n + MBCLEN_NEEDMORE_LEN(n_bytes))) > 0) {
|
4208
4208
|
return l;
|
4209
4209
|
}
|
4210
4210
|
}
|
4211
|
-
else if (MBCLEN_CHARFOUND_P(
|
4212
|
-
return l + MBCLEN_CHARFOUND_LEN(
|
4211
|
+
else if (MBCLEN_CHARFOUND_P(n_bytes)) {
|
4212
|
+
return l + MBCLEN_CHARFOUND_LEN(n_bytes);
|
4213
4213
|
}
|
4214
4214
|
}
|
4215
4215
|
return n;
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zlib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yukihiro Matsumoto
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-10-
|
12
|
+
date: 2021-10-19 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Ruby interface for the zlib compression/decompression library
|
15
15
|
email:
|