Actions
Backport #8829
closedSegfault in Zlib::Inflate
Status:
Closed
Assignee:
Description
Repro:
ruby -rzlib -e 'Zlib::Inflate.inflate([0x08,0x3C,0x0,0x0,0x0,0x0].pack("c*"))'
tested on p247, osx (10.8), linux 2.6, (linux: zlib 1.2.3)
Files
Updated by drbrain (Eric Hodel) over 10 years ago
- Status changed from Open to Assigned
- Assignee set to drbrain (Eric Hodel)
- Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN to 1.9.3: DONTNEED, 2.0.0: REQUIRED
Seems to be my bug.
Updated by drbrain (Eric Hodel) over 10 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r42720.
McClain, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- ext/zlib/zlib.c (zstream_run): Fix handling of deflate streams that
need a dictionary but are being decompressed by Zlib::Inflate.inflate
(which has no option to set a dictionary). Now Zlib::NeedDict is
raised instead of crashing. [ruby-trunk - Bug #8829] - test/zlib/test_zlib.rb (TestZlibInflate): Test for the above.
Updated by nagachika (Tomoyuki Chikanaga) over 10 years ago
- Tracker changed from Bug to Backport
- Project changed from Ruby master to Backport200
- Category deleted (
core) - Status changed from Closed to Assigned
- Assignee changed from drbrain (Eric Hodel) to nagachika (Tomoyuki Chikanaga)
Updated by nagachika (Tomoyuki Chikanaga) over 10 years ago
- Status changed from Assigned to Closed
This issue was solved with changeset r42727.
McClain, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
merge revision(s) 42720: [Backport #8829]
* ext/zlib/zlib.c (zstream_run): Fix handling of deflate streams that
need a dictionary but are being decompressed by Zlib::Inflate.inflate
(which has no option to set a dictionary). Now Zlib::NeedDict is
raised instead of crashing. [ruby-trunk - Bug #8829]
* test/zlib/test_zlib.rb (TestZlibInflate): Test for the above.
Actions
Like0
Like0Like0Like0Like0