< prev index next >
src/java.base/share/native/libjli/parse_manifest.c
Print this page
rev 13912 : 8151848: Higher native memory usage caused by upgrade to zlib 1.2.8
Reviewed-by: sherman
Contributed-by: nikolay@azulsystems.com
@@ -89,11 +89,11 @@
free(in);
return (NULL);
}
zs.next_out = (Byte*)out;
zs.avail_out = (uInt)entry->isize;
- if (inflate(&zs, Z_PARTIAL_FLUSH) < 0) {
+ if (inflate(&zs, Z_FINISH) != Z_STREAM_END) {
free(in);
free(out);
return (NULL);
}
*(char *)((size_t)out + entry->isize) = '\0';
< prev index next >