We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Qnil
gzfile_calc_crc
1 parent 3b45a5b commit eb1cf42Copy full SHA for eb1cf42
ext/zlib/zlib.c
@@ -4229,6 +4229,7 @@ gzreader_skip_linebreaks(struct gzfile *gz)
4229
while (n++, *(p++) == '\n') {
4230
if (n >= ZSTREAM_BUF_FILLED(&gz->z)) {
4231
str = zstream_detach_buffer(&gz->z);
4232
+ ASSUME(!NIL_P(str));
4233
gzfile_calc_crc(gz, str);
4234
while (ZSTREAM_BUF_FILLED(&gz->z) == 0) {
4235
if (GZFILE_IS_FINISHED(gz)) return;
@@ -4637,6 +4638,7 @@ zlib_gunzip_run(VALUE arg)
4637
4638
4639
gzfile_read_header(gz, Qnil);
4640
dst = zstream_detach_buffer(&gz->z);
4641
+ ASSUME(!NIL_P(dst));
4642
gzfile_calc_crc(gz, dst);
4643
if (!ZSTREAM_IS_FINISHED(&gz->z)) {
4644
rb_raise(cGzError, "unexpected end of file");
0 commit comments