зеркало из https://github.com/github/ruby.git
* ext/zlib/zlib.c (gzfile_check_footer): ISIZE (Input SIZE) in
gzip's header is the size of uncompressed input data modulo 2^32. [ruby-core:34481] http://www.ietf.org/rfc/rfc1952.txt git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
377b85f2cb
Коммит
ec9a859c76
|
@ -1,3 +1,9 @@
|
|||
Fri Jan 14 13:38:58 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* ext/zlib/zlib.c (gzfile_check_footer): ISIZE (Input SIZE) in
|
||||
gzip's header is the size of uncompressed input data modulo 2^32.
|
||||
[ruby-core:34481] http://www.ietf.org/rfc/rfc1952.txt
|
||||
|
||||
Fri Jan 14 11:36:25 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* configure.in, win32/Makefile.sub (RUNRUBY): require path should
|
||||
|
|
|
@ -2169,7 +2169,7 @@ gzfile_check_footer(struct gzfile *gz)
|
|||
if (gz->crc != crc) {
|
||||
rb_raise(cCRCError, "invalid compressed data -- crc error");
|
||||
}
|
||||
if (gz->z.stream.total_out != length) {
|
||||
if ((int32_t)gz->z.stream.total_out != length) {
|
||||
rb_raise(cLengthError, "invalid compressed data -- length error");
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче