gzip: fix a case where tar xzf fails (we use uninitialized fd)
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Mon, 12 Nov 2007 01:44:49 +0000 (01:44 +0000)
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Mon, 12 Nov 2007 01:44:49 +0000 (01:44 +0000)
git-svn-id: svn://busybox.net/trunk/busybox@20408 69ca8d6d-28ef-0310-b511-8ec308f3f277

archival/libunarchive/decompress_unzip.c

index 0572bee..04d6f15 100644 (file)
@@ -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)) {