summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko2008-02-04 12:12:48 +0000
committerDenis Vlasenko2008-02-04 12:12:48 +0000
commite8ef7ec7de0cd9906b42a94eddb800ed1229a614 (patch)
tree77596e96a82e367b23c986c9259680990df0edf2 /include
parentf3f33ebb0b325a0a5710cb39530449dd09c5ab70 (diff)
downloadbusybox-e8ef7ec7de0cd9906b42a94eddb800ed1229a614.zip
busybox-e8ef7ec7de0cd9906b42a94eddb800ed1229a614.tar.gz
unzip: do not try to read entire compressed stream at once (it can be huge)
unzip: handle short reads correctly
Diffstat (limited to 'include')
-rw-r--r--include/unarchive.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/unarchive.h b/include/unarchive.h
index 00a00d6..e8beebb 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);