From 4bfb84db4e941e227f07346a3b3a56afd7d1e3fe Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 12 Nov 2007 01:44:49 +0000 Subject: gzip: fix a case where tar xzf fails (we use uninitialized fd) --- archival/libunarchive/decompress_unzip.c | 1 + 1 file changed, 1 insertion(+) (limited to 'archival/libunarchive') 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)) { -- cgit v1.1