src/share/native/java/util/zip/zip_util.c

Print this page

        

*** 1372,1384 **** pos += n; count -= n; strm.next_in = (Bytef *)tmp; strm.avail_in = n; do { ! switch (inflate(&strm, Z_PARTIAL_FLUSH)) { ! case Z_OK: ! break; case Z_STREAM_END: if (count != 0 || strm.total_out != entry->size) { *msg = "inflateFully: Unexpected end of stream"; inflateEnd(&strm); return JNI_FALSE; --- 1372,1382 ---- pos += n; count -= n; strm.next_in = (Bytef *)tmp; strm.avail_in = n; do { ! switch (inflate(&strm, Z_FINISH)) { case Z_STREAM_END: if (count != 0 || strm.total_out != entry->size) { *msg = "inflateFully: Unexpected end of stream"; inflateEnd(&strm); return JNI_FALSE;