<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/zlib/test_zlib.rb, branch v3_2_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>Merge zlib-3.0.1</title>
<updated>2026-03-10T06:58:49+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2026-03-09T07:45:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7cdea3bd49409c7c2e022135d245cf1d346b087f'/>
<id>7cdea3bd49409c7c2e022135d245cf1d346b087f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Introduce `IO.new(..., path:)` and promote `File#path` to `IO#path`. (#6867)</title>
<updated>2022-12-08T05:19:53+00:00</updated>
<author>
<name>Samuel Williams</name>
<email>samuel.williams@oriontransfer.co.nz</email>
</author>
<published>2022-12-08T05:19:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6fd5d2dc003bda5ce0685abd2b975d7ac7079d46'/>
<id>6fd5d2dc003bda5ce0685abd2b975d7ac7079d46</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/zlib] Mask checksums to lower 32bits</title>
<updated>2022-04-02T08:01:33+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-04-02T07:06:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1cbdedec895070df1df96d05370cf8da084ab6fa'/>
<id>1cbdedec895070df1df96d05370cf8da084ab6fa</id>
<content type='text'>
Upper bits affect the result of `crc32` in zlib 1.2.12.

https://github.com/ruby/zlib/commit/9ab6d04af1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Upper bits affect the result of `crc32` in zlib 1.2.12.

https://github.com/ruby/zlib/commit/9ab6d04af1
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/zlib] Use omit instead of skip for test-unit</title>
<updated>2022-01-11T12:35:22+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2022-01-11T12:26:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6b87d980112c1b37f0bb64d5fa5d78a3f5899fdf'/>
<id>6b87d980112c1b37f0bb64d5fa5d78a3f5899fdf</id>
<content type='text'>
https://github.com/ruby/zlib/commit/5f23cd3009
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/zlib/commit/5f23cd3009
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/zlib] [Bug #18358] Fix crash in zlib when in progress</title>
<updated>2021-11-24T14:01:41+00:00</updated>
<author>
<name>Peter Zhu</name>
<email>peter@peterzhu.ca</email>
</author>
<published>2021-11-23T18:14:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c51b92c18deb850d2cea3a7c9020db23b364ab72'/>
<id>c51b92c18deb850d2cea3a7c9020db23b364ab72</id>
<content type='text'>
When Zlib::Inflate#inflate or Zlib::Deflate#deflate is called
recursively inside the block, a crash can occur because of an
use-after-free bug.

https://github.com/ruby/zlib/commit/50fb8a0338
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When Zlib::Inflate#inflate or Zlib::Deflate#deflate is called
recursively inside the block, a crash can occur because of an
use-after-free bug.

https://github.com/ruby/zlib/commit/50fb8a0338
</pre>
</div>
</content>
</entry>
<entry>
<title>Use Test::Unit::AssertionFailedError instead of MiniTest::Assertion for test-unit migration</title>
<updated>2021-09-06T09:34:15+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2021-09-06T09:34:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=940a19e4b3ae1ce466c3bc912175b4ef7c615c53'/>
<id>940a19e4b3ae1ce466c3bc912175b4ef7c615c53</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/zlib] Synchronize access to zstream to prevent segfault in multithreaded use</title>
<updated>2021-07-28T04:40:03+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2021-06-15T22:27:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b3d62a77d928eff01268ca7fa1c1c0966702926d'/>
<id>b3d62a77d928eff01268ca7fa1c1c0966702926d</id>
<content type='text'>
I'm not sure whether this handles all multithreaded use cases,
but this handles the example that crashes almost immediately
and does 10,000,000 total deflates using 100 separate threads.

To prevent the tests from taking forever, the committed test
for this uses only 10,000 deflates across 10 separate threads,
which still causes a segfault in the previous implementation
almost immediately.

Fixes [Bug #17803]

https://github.com/ruby/zlib/commit/4b1023b3f2
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I'm not sure whether this handles all multithreaded use cases,
but this handles the example that crashes almost immediately
and does 10,000,000 total deflates using 100 separate threads.

To prevent the tests from taking forever, the committed test
for this uses only 10,000 deflates across 10 separate threads,
which still causes a segfault in the previous implementation
almost immediately.

Fixes [Bug #17803]

https://github.com/ruby/zlib/commit/4b1023b3f2
</pre>
</div>
</content>
</entry>
<entry>
<title>test/zlib/test_zlib.rb: Set binmode to test output file</title>
<updated>2021-04-08T05:26:42+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2021-04-08T05:22:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ee372aa8735b8836d074b90a41bf69269292a977'/>
<id>ee372aa8735b8836d074b90a41bf69269292a977</id>
<content type='text'>
Seems like the test `TestZlibGzipFile#test_gzip_reader_zcat` fails when
the timestamp has `\n\n`.

https://ci.appveyor.com/project/ruby/ruby/builds/38597932
```
  1) Error:
TestZlibGzipFile#test_gzip_reader_zcat:
Zlib::DataError: invalid distance too far back
    C:/projects/ruby/test/zlib/test_zlib.rb:522:in `initialize'
    C:/projects/ruby/test/zlib/test_zlib.rb:522:in `new'
    C:/projects/ruby/test/zlib/test_zlib.rb:522:in `zcat'
    C:/projects/ruby/test/zlib/test_zlib.rb:522:in `block (2 levels) in test_gzip_reader_zcat'
    C:/projects/ruby/test/zlib/test_zlib.rb:521:in `open'
    C:/projects/ruby/test/zlib/test_zlib.rb:521:in `block in test_gzip_reader_zcat'
    C:/projects/ruby/lib/tempfile.rb:358:in `create'
    C:/projects/ruby/test/zlib/test_zlib.rb:510:in `test_gzip_reader_zcat'
```

The test time is around 2021-04-08 04:40 +0900. Maybe the following time
should trigger the bug.

```
irb(main):001:0&gt; Time.at(1617824266)
=&gt; 2021-04-08 04:37:46 +0900
irb(main):002:0&gt; [1617824266].pack("V")
=&gt; "\n\nn`"
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Seems like the test `TestZlibGzipFile#test_gzip_reader_zcat` fails when
the timestamp has `\n\n`.

https://ci.appveyor.com/project/ruby/ruby/builds/38597932
```
  1) Error:
TestZlibGzipFile#test_gzip_reader_zcat:
Zlib::DataError: invalid distance too far back
    C:/projects/ruby/test/zlib/test_zlib.rb:522:in `initialize'
    C:/projects/ruby/test/zlib/test_zlib.rb:522:in `new'
    C:/projects/ruby/test/zlib/test_zlib.rb:522:in `zcat'
    C:/projects/ruby/test/zlib/test_zlib.rb:522:in `block (2 levels) in test_gzip_reader_zcat'
    C:/projects/ruby/test/zlib/test_zlib.rb:521:in `open'
    C:/projects/ruby/test/zlib/test_zlib.rb:521:in `block in test_gzip_reader_zcat'
    C:/projects/ruby/lib/tempfile.rb:358:in `create'
    C:/projects/ruby/test/zlib/test_zlib.rb:510:in `test_gzip_reader_zcat'
```

The test time is around 2021-04-08 04:40 +0900. Maybe the following time
should trigger the bug.

```
irb(main):001:0&gt; Time.at(1617824266)
=&gt; 2021-04-08 04:37:46 +0900
irb(main):002:0&gt; [1617824266].pack("V")
=&gt; "\n\nn`"
```
</pre>
</div>
</content>
</entry>
<entry>
<title>test/zlib/test_zlib.rb: stop a failure on armv7l</title>
<updated>2021-03-23T03:20:58+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2021-03-23T03:20:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=81d52978d03d009c9061d6a6ce1fee3dbd800b83'/>
<id>81d52978d03d009c9061d6a6ce1fee3dbd800b83</id>
<content type='text'>
The platform defines a constant File::TMPFILE, but it seems unavailable
(maybe depending on the file system?).

http://rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20210322T171707Z.fail.html.gz

This change adds some rescue cluases to the test, copied from
test/ruby/test_file.rb.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The platform defines a constant File::TMPFILE, but it seems unavailable
(maybe depending on the file system?).

http://rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20210322T171707Z.fail.html.gz

This change adds some rescue cluases to the test, copied from
test/ruby/test_file.rb.
</pre>
</div>
</content>
</entry>
<entry>
<title>test_zlib(test_path_tmpfile): fix Zlib instance leak</title>
<updated>2021-03-16T17:42:31+00:00</updated>
<author>
<name>Sorah Fukumori</name>
<email>sorah@cookpad.com</email>
</author>
<published>2021-03-16T17:40:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=756e8a2cf3424b9a3eb9dde4a01325cba21a7e81'/>
<id>756e8a2cf3424b9a3eb9dde4a01325cba21a7e81</id>
<content type='text'>
follow-up: commit cf831f49189c4a890da6845e39199a5dfaf4fb48
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
follow-up: commit cf831f49189c4a890da6845e39199a5dfaf4fb48
</pre>
</div>
</content>
</entry>
</feed>
