From e8ef7ec7de0cd9906b42a94eddb800ed1229a614 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 4 Feb 2008 12:12:48 +0000 Subject: unzip: do not try to read entire compressed stream at once (it can be huge) unzip: handle short reads correctly --- include/unarchive.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/unarchive.h b/include/unarchive.h index 00a00d672..e8beebbe1 100644 --- a/include/unarchive.h +++ b/include/unarchive.h @@ -109,7 +109,7 @@ typedef struct inflate_unzip_result { } inflate_unzip_result; extern USE_DESKTOP(long long) int unpack_bz2_stream(int src_fd, int dst_fd); -extern USE_DESKTOP(long long) int inflate_unzip(inflate_unzip_result *res, unsigned bufsize, int src_fd, int dst_fd); +extern USE_DESKTOP(long long) int inflate_unzip(inflate_unzip_result *res, off_t compr_size, int src_fd, int dst_fd); extern USE_DESKTOP(long long) int unpack_gz_stream(int src_fd, int dst_fd); extern USE_DESKTOP(long long) int unpack_lzma_stream(int src_fd, int dst_fd); -- cgit v1.2.3