aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-11-12 01:44:49 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-11-12 01:44:49 +0000
commit4bfb84db4e941e227f07346a3b3a56afd7d1e3fe (patch)
tree5a62706328bdd93e7e9c6b43c07ea5e741b75202 /archival
parente5569cb52e319ec3b2c620b409324be884ac0076 (diff)
downloadbusybox-w32-4bfb84db4e941e227f07346a3b3a56afd7d1e3fe.tar.gz
busybox-w32-4bfb84db4e941e227f07346a3b3a56afd7d1e3fe.tar.bz2
busybox-w32-4bfb84db4e941e227f07346a3b3a56afd7d1e3fe.zip
gzip: fix a case where tar xzf fails (we use uninitialized fd)
Diffstat (limited to 'archival')
-rw-r--r--archival/libunarchive/decompress_unzip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c
index 0572bee68..04d6f1556 100644
--- a/archival/libunarchive/decompress_unzip.c
+++ b/archival/libunarchive/decompress_unzip.c
@@ -1178,6 +1178,7 @@ unpack_gz_stream(int in, int out)
1178 ALLOC_STATE; 1178 ALLOC_STATE;
1179 bytebuffer_max = 0x8000; 1179 bytebuffer_max = 0x8000;
1180 bytebuffer = xmalloc(bytebuffer_max); 1180 bytebuffer = xmalloc(bytebuffer_max);
1181 gunzip_src_fd = in;
1181 1182
1182 again: 1183 again:
1183 if (!check_header_gzip(PASS_STATE_ONLY)) { 1184 if (!check_header_gzip(PASS_STATE_ONLY)) {