summaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorDenis Vlasenko2007-11-12 01:44:49 +0000
committerDenis Vlasenko2007-11-12 01:44:49 +0000
commit4bfb84db4e941e227f07346a3b3a56afd7d1e3fe (patch)
tree5a62706328bdd93e7e9c6b43c07ea5e741b75202 /archival
parente5569cb52e319ec3b2c620b409324be884ac0076 (diff)
downloadbusybox-4bfb84db4e941e227f07346a3b3a56afd7d1e3fe.zip
busybox-4bfb84db4e941e227f07346a3b3a56afd7d1e3fe.tar.gz
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 0572bee..04d6f15 100644
--- a/archival/libunarchive/decompress_unzip.c
+++ b/archival/libunarchive/decompress_unzip.c
@@ -1178,6 +1178,7 @@ unpack_gz_stream(int in, int out)
ALLOC_STATE;
bytebuffer_max = 0x8000;
bytebuffer = xmalloc(bytebuffer_max);
+ gunzip_src_fd = in;
again:
if (!check_header_gzip(PASS_STATE_ONLY)) {