<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/ext/zlib/zlib.c, branch v3_0_4</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>merge revision(s) c51b92c18deb850d2cea3a7c9020db23b364ab72: [Backport #18358]</title>
<updated>2022-02-19T06:15:04+00:00</updated>
<author>
<name>nagachika</name>
<email>nagachika@ruby-lang.org</email>
</author>
<published>2022-02-19T06:15:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=951e1377c18f84b52fbd3aab048da8536a3bbdb0'/>
<id>951e1377c18f84b52fbd3aab048da8536a3bbdb0</id>
<content type='text'>
	[ruby/zlib] [Bug #18358] Fix crash in zlib when in progress

	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
	---
	 ext/zlib/zlib.c        | 117 ++++++++++++++++++++++++++++++++-----------------
	 test/zlib/test_zlib.rb |  10 ++++-
	 2 files changed, 85 insertions(+), 42 deletions(-)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	[ruby/zlib] [Bug #18358] Fix crash in zlib when in progress

	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
	---
	 ext/zlib/zlib.c        | 117 ++++++++++++++++++++++++++++++++-----------------
	 test/zlib/test_zlib.rb |  10 ++++-
	 2 files changed, 85 insertions(+), 42 deletions(-)
</pre>
</div>
</content>
</entry>
<entry>
<title>merge revision(s) b3d62a77d928eff01268ca7fa1c1c0966702926d: [Backport #17803]</title>
<updated>2022-02-19T05:36:41+00:00</updated>
<author>
<name>nagachika</name>
<email>nagachika@ruby-lang.org</email>
</author>
<published>2022-02-19T05:36:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=49ed412060f48d3b9343b8b90d73e6fcb02b3354'/>
<id>49ed412060f48d3b9343b8b90d73e6fcb02b3354</id>
<content type='text'>
	[ruby/zlib] Synchronize access to zstream to prevent segfault in
	 multithreaded use

	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
	---
	 ext/zlib/zlib.c        | 33 ++++++++++++++++++++++++++-
	 test/zlib/test_zlib.rb | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++
	 2 files changed, 93 insertions(+), 1 deletion(-)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	[ruby/zlib] Synchronize access to zstream to prevent segfault in
	 multithreaded use

	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
	---
	 ext/zlib/zlib.c        | 33 ++++++++++++++++++++++++++-
	 test/zlib/test_zlib.rb | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++
	 2 files changed, 93 insertions(+), 1 deletion(-)
</pre>
</div>
</content>
</entry>
<entry>
<title>merge revision(s) cf831f49189c4a890da6845e39199a5dfaf4fb48,3260602fa3d905ba310b9afbc5365ee52cb53d62:</title>
<updated>2022-02-19T05:33:05+00:00</updated>
<author>
<name>nagachika</name>
<email>nagachika@ruby-lang.org</email>
</author>
<published>2022-02-19T05:33:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ebbe2fc9233c929ebd5a243fb82aaa7c0115d39b'/>
<id>ebbe2fc9233c929ebd5a243fb82aaa7c0115d39b</id>
<content type='text'>
	zlib: fix Gzip{Writer,Reader}.new fails with a O_TMPFILE file

	---
	 ext/zlib/zlib.c        | 18 ++++++++++++++----
	 test/zlib/test_zlib.rb | 21 +++++++++++++++++++++
	 2 files changed, 35 insertions(+), 4 deletions(-)

	Adjusted indents [ci skip]

	---
	 ext/zlib/zlib.c | 10 +++++-----
	 1 file changed, 5 insertions(+), 5 deletions(-)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	zlib: fix Gzip{Writer,Reader}.new fails with a O_TMPFILE file

	---
	 ext/zlib/zlib.c        | 18 ++++++++++++++----
	 test/zlib/test_zlib.rb | 21 +++++++++++++++++++++
	 2 files changed, 35 insertions(+), 4 deletions(-)

	Adjusted indents [ci skip]

	---
	 ext/zlib/zlib.c | 10 +++++-----
	 1 file changed, 5 insertions(+), 5 deletions(-)
</pre>
</div>
</content>
</entry>
<entry>
<title>merge revision(s) fa7a712d460dc904f8a836bb22b54d457d95ba8e:</title>
<updated>2022-02-19T05:25:50+00:00</updated>
<author>
<name>nagachika</name>
<email>nagachika@ruby-lang.org</email>
</author>
<published>2022-02-19T05:25:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4868d4b439123a7ce2b24770833d2a575b81e3a5'/>
<id>4868d4b439123a7ce2b24770833d2a575b81e3a5</id>
<content type='text'>
	Fix -Wundef warnings for HAVE_RB_EXT_RACTOR_SAFE

	* See [Feature #17752]
	---
	 ext/cgi/escape/escape.c  | 2 +-
	 ext/monitor/monitor.c    | 2 +-
	 ext/racc/cparse/cparse.c | 2 +-
	 ext/zlib/zlib.c          | 2 +-
	 4 files changed, 4 insertions(+), 4 deletions(-)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	Fix -Wundef warnings for HAVE_RB_EXT_RACTOR_SAFE

	* See [Feature #17752]
	---
	 ext/cgi/escape/escape.c  | 2 +-
	 ext/monitor/monitor.c    | 2 +-
	 ext/racc/cparse/cparse.c | 2 +-
	 ext/zlib/zlib.c          | 2 +-
	 4 files changed, 4 insertions(+), 4 deletions(-)
</pre>
</div>
</content>
</entry>
<entry>
<title>merge revision(s) 0c5f8c62766afe4605172800063e63fe36996658: [Backport #10961]</title>
<updated>2022-02-19T05:19:22+00:00</updated>
<author>
<name>nagachika</name>
<email>nagachika@ruby-lang.org</email>
</author>
<published>2022-02-19T05:19:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5c15cecfbfe61f9d46f45c949829c79cb7f162a9'/>
<id>5c15cecfbfe61f9d46f45c949829c79cb7f162a9</id>
<content type='text'>
	[ruby/zlib] Resume zstream if available [Bug #10961]

	---
	 ext/zlib/zlib.c | 6 ++++++
	 1 file changed, 6 insertions(+)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	[ruby/zlib] Resume zstream if available [Bug #10961]

	---
	 ext/zlib/zlib.c | 6 ++++++
	 1 file changed, 6 insertions(+)
</pre>
</div>
</content>
</entry>
<entry>
<title>Bump up zlib version to 2.0.0</title>
<updated>2021-10-30T11:53:12+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2021-10-14T06:55:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e5babb16a1cc7f034e15180df0eeaacd17b29a34'/>
<id>e5babb16a1cc7f034e15180df0eeaacd17b29a34</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>zlib is ractor-safe</title>
<updated>2020-12-18T05:09:32+00:00</updated>
<author>
<name>Koichi Sasada</name>
<email>ko1@atdot.net</email>
</author>
<published>2020-12-18T02:37:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b44f7151c71011460877bdba549453aaeada88fe'/>
<id>b44f7151c71011460877bdba549453aaeada88fe</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] Add Zlib::Inflate#inflate :buffer keyword argument</title>
<updated>2020-12-04T10:12:32+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2020-10-29T19:28:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0adc426ca5cf83e57f5e8433a2f7b55fb7a1fad6'/>
<id>0adc426ca5cf83e57f5e8433a2f7b55fb7a1fad6</id>
<content type='text'>
If a buffer keyword argument is given, it is used as the buffer,
instead of creating new strings.  This can result in significantly
lower memory usage during inflation.

Implements #19

https://github.com/ruby/zlib/commit/dac9a9b57d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a buffer keyword argument is given, it is used as the buffer,
instead of creating new strings.  This can result in significantly
lower memory usage during inflation.

Implements #19

https://github.com/ruby/zlib/commit/dac9a9b57d
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/zlib] Allow Zlib.crc32 and .adler32 to accept IO instance</title>
<updated>2020-12-04T10:12:20+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2020-10-28T17:58:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=bc63ec57e7f965796479f68f6f687187c089bd40'/>
<id>bc63ec57e7f965796479f68f6f687187c089bd40</id>
<content type='text'>
This reads from the IO in 8192 byte chunks, so you don't need to
have the entire string in memory.

Fixes #16

https://github.com/ruby/zlib/commit/ba9793c550
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reads from the IO in 8192 byte chunks, so you don't need to
have the entire string in memory.

Fixes #16

https://github.com/ruby/zlib/commit/ba9793c550
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/zlib] Document that gets can return nil when eof? returns false</title>
<updated>2020-12-04T10:11:30+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2020-09-11T20:15:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a60dfff43470583bbb4474594efde8607f889e8b'/>
<id>a60dfff43470583bbb4474594efde8607f889e8b</id>
<content type='text'>
This behavior differs from File#gets.

Fixes [Bug #13904]

https://github.com/ruby/zlib/commit/448e41efdd
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This behavior differs from File#gets.

Fixes [Bug #13904]

https://github.com/ruby/zlib/commit/448e41efdd
</pre>
</div>
</content>
</entry>
</feed>
