diff options
| author | Sutou Kouhei <kou@clear-code.com> | 2021-10-05 16:43:21 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2021-10-15 15:31:15 +0900 |
| commit | 027a3379d67922738d503511c2123989229f8d9b (patch) | |
| tree | d9a04d8bd1ec1fb4c759905d2c064e21a4ee53a5 /include/ruby | |
| parent | 679054208e320d4e639aa3dc1f16ad1a4945ac72 (diff) | |
[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
Diffstat (limited to 'include/ruby')
0 files changed, 0 insertions, 0 deletions
