1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/zlib
Sutou Kouhei 027a3379d6 [ruby/zlib] Fix a bug that GZipReader#gets may return incomplete line
See also: https://github.com/ruby/csv/issues/117#issuecomment-933289373

How to reproduce with x.csv.gz in the issue comment:

    Zlib::GzipReader.open("x.csv.gz") do |rio|
      rio.gets(nil, 1024)
      while line = rio.gets(nil, 8192)
        raise line unless line.valid_encoding?
      end
    end

Reported by Dimitrij Denissenko. Thanks!!!

https://github.com/ruby/zlib/commit/b1f182e98f
2021-10-15 15:31:15 +09:00
..
win32 zlib: patches for mswin64 2020-11-24 08:27:08 +09:00
.gitignore
depend ruby tool/update-deps --fix 2021-10-05 14:18:23 +09:00
extconf.rb Found library is not usable if the header is not found 2021-07-06 01:17:38 +09:00
extlibs zlib: patches for mswin64 2020-11-24 08:27:08 +09:00
zlib.c [ruby/zlib] Fix a bug that GZipReader#gets may return incomplete line 2021-10-15 15:31:15 +09:00
zlib.gemspec [ruby/zlib] gemspec: Remove unused files 2021-04-20 21:19:41 +09:00