zlib 3.2.3 → 3.2.4
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/ext/zlib/extconf.rb +2 -4
- data/ext/zlib/zlib.c +14 -6
- data/zlib.gemspec +1 -1
- metadata +26 -24
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7b4aedd29da471f6f4ade362844bf7dfd791422d5c835e5df3d5ce2d830b62b3
|
|
4
|
+
data.tar.gz: a3619742be0ba61d02eb10a5c8bc0c0c25a282b8e119dfa892488a41560e9f0a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b8c1fa15bb6ef5e3888224f860a13eaa8b422e43975df76f44f091bf145bfa35998aacbed000106e1a0c5a9d9a1e693c721433a68061b4b0cf5bdd6df42ca208
|
|
7
|
+
data.tar.gz: 1aa4924a7b35dec704c2cf50e75306d876e02d7a16f5bcc834d4d3616eed16be9a20980435501bfdb26859ad14b23d6855062f6cf6ca3b9d435f9b6364f490e4
|
data/ext/zlib/extconf.rb
CHANGED
|
@@ -82,9 +82,7 @@ if have_zlib
|
|
|
82
82
|
Logging::message 'checking for kind of operating system... '
|
|
83
83
|
os_code = with_config('os-code') ||
|
|
84
84
|
case RUBY_PLATFORM.split('-',2)[1]
|
|
85
|
-
when
|
|
86
|
-
os_code = 'AMIGA'
|
|
87
|
-
when /mswin|mingw|bccwin/ then
|
|
85
|
+
when /mswin|mingw/ then
|
|
88
86
|
# NOTE: cygwin should be regarded as Unix.
|
|
89
87
|
os_code = 'WIN32'
|
|
90
88
|
else
|
|
@@ -114,7 +112,7 @@ if have_zlib
|
|
|
114
112
|
Logging::message "#{OS_NAMES[os_code]}\n"
|
|
115
113
|
defines << "OS_CODE=#{os_code}"
|
|
116
114
|
|
|
117
|
-
$defs.concat(defines.collect{|d|'
|
|
115
|
+
$defs.concat(defines.collect{|d|'-D'+d})
|
|
118
116
|
|
|
119
117
|
if zsrc
|
|
120
118
|
$defs << "-DHAVE_CRC32_COMBINE"
|
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 "3.2.
|
|
28
|
+
#define RUBY_ZLIB_VERSION "3.2.4"
|
|
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)
|
|
@@ -651,6 +651,7 @@ zstream_init(struct zstream *z, const struct zstream_funcs *func)
|
|
|
651
651
|
z->stream.avail_in = 0;
|
|
652
652
|
z->stream.next_out = Z_NULL;
|
|
653
653
|
z->stream.avail_out = 0;
|
|
654
|
+
z->stream.state = Z_NULL;
|
|
654
655
|
z->func = func;
|
|
655
656
|
}
|
|
656
657
|
|
|
@@ -1092,8 +1093,9 @@ zstream_run_func(struct zstream_run_args *args)
|
|
|
1092
1093
|
break;
|
|
1093
1094
|
}
|
|
1094
1095
|
|
|
1095
|
-
if (err != Z_OK && err != Z_BUF_ERROR)
|
|
1096
|
+
if (err != Z_OK && err != Z_BUF_ERROR) {
|
|
1096
1097
|
break;
|
|
1098
|
+
}
|
|
1097
1099
|
|
|
1098
1100
|
if (z->stream.avail_out > 0) {
|
|
1099
1101
|
z->flags |= ZSTREAM_FLAG_IN_STREAM;
|
|
@@ -1168,12 +1170,17 @@ loop:
|
|
|
1168
1170
|
/* retry if no exception is thrown */
|
|
1169
1171
|
if (err == Z_OK && args->interrupt) {
|
|
1170
1172
|
args->interrupt = 0;
|
|
1171
|
-
|
|
1173
|
+
|
|
1174
|
+
/* Retry only if both avail_in > 0 (more input to process) and avail_out > 0
|
|
1175
|
+
* (output buffer has space). If avail_out == 0, the buffer is full and should
|
|
1176
|
+
* be consumed by the caller first. If avail_in == 0, there's nothing more to process. */
|
|
1177
|
+
if (z->stream.avail_in > 0 && z->stream.avail_out > 0) {
|
|
1178
|
+
goto loop;
|
|
1179
|
+
}
|
|
1172
1180
|
}
|
|
1173
1181
|
|
|
1174
|
-
if (flush != Z_FINISH && err == Z_BUF_ERROR
|
|
1175
|
-
|
|
1176
|
-
z->flags |= ZSTREAM_FLAG_IN_STREAM;
|
|
1182
|
+
if (flush != Z_FINISH && err == Z_BUF_ERROR && z->stream.avail_out > 0) {
|
|
1183
|
+
z->flags |= ZSTREAM_FLAG_IN_STREAM;
|
|
1177
1184
|
}
|
|
1178
1185
|
|
|
1179
1186
|
zstream_reset_input(z);
|
|
@@ -1454,6 +1461,7 @@ rb_zstream_finish(VALUE obj)
|
|
|
1454
1461
|
* call-seq:
|
|
1455
1462
|
* flush_next_in -> input
|
|
1456
1463
|
*
|
|
1464
|
+
* Flushes input buffer and returns all data in that buffer.
|
|
1457
1465
|
*/
|
|
1458
1466
|
static VALUE
|
|
1459
1467
|
rb_zstream_flush_next_in(VALUE obj)
|
data/zlib.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,50 +1,52 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zlib
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.2.
|
|
4
|
+
version: 3.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- Yukihiro Matsumoto
|
|
8
|
-
- UENO Katsuhiro
|
|
7
|
+
- Yukihiro Matsumoto
|
|
8
|
+
- UENO Katsuhiro
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-10-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Ruby interface for the zlib compression/decompression library
|
|
14
14
|
email:
|
|
15
|
-
- matz@ruby-lang.org
|
|
16
|
-
-
|
|
15
|
+
- matz@ruby-lang.org
|
|
16
|
+
-
|
|
17
17
|
executables: []
|
|
18
18
|
extensions:
|
|
19
|
-
- ext/zlib/extconf.rb
|
|
19
|
+
- ext/zlib/extconf.rb
|
|
20
20
|
extra_rdoc_files: []
|
|
21
21
|
files:
|
|
22
|
-
- BSDL
|
|
23
|
-
- COPYING
|
|
24
|
-
- README.md
|
|
25
|
-
- ext/zlib/extconf.rb
|
|
26
|
-
- ext/zlib/zlib.c
|
|
27
|
-
- zlib.gemspec
|
|
28
|
-
homepage: https://github.com/ruby/zlib
|
|
22
|
+
- BSDL
|
|
23
|
+
- COPYING
|
|
24
|
+
- README.md
|
|
25
|
+
- ext/zlib/extconf.rb
|
|
26
|
+
- ext/zlib/zlib.c
|
|
27
|
+
- zlib.gemspec
|
|
28
|
+
homepage: "https://github.com/ruby/zlib"
|
|
29
29
|
licenses:
|
|
30
|
-
- Ruby
|
|
31
|
-
- BSD-2-Clause
|
|
30
|
+
- Ruby
|
|
31
|
+
- BSD-2-Clause
|
|
32
32
|
metadata: {}
|
|
33
33
|
rdoc_options: []
|
|
34
34
|
require_paths:
|
|
35
|
-
- lib
|
|
35
|
+
- lib
|
|
36
36
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
-
|
|
39
|
+
- ">="
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
41
|
+
version: 2.7.0
|
|
41
42
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
42
43
|
requirements:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
-
|
|
45
|
+
- ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: "0"
|
|
46
48
|
requirements: []
|
|
47
|
-
rubygems_version:
|
|
49
|
+
rubygems_version: 4.1.0.beta1
|
|
48
50
|
specification_version: 4
|
|
49
51
|
summary: Ruby interface for the zlib compression/decompression library
|
|
50
52
|
test_files: []
|