gzip: fix a case where tar xzf fails (we use uninitialized fd)
This commit is contained in:
parent
e5569cb52e
commit
4bfb84db4e
@ -1178,6 +1178,7 @@ unpack_gz_stream(int in, int out)
|
|||||||
ALLOC_STATE;
|
ALLOC_STATE;
|
||||||
bytebuffer_max = 0x8000;
|
bytebuffer_max = 0x8000;
|
||||||
bytebuffer = xmalloc(bytebuffer_max);
|
bytebuffer = xmalloc(bytebuffer_max);
|
||||||
|
gunzip_src_fd = in;
|
||||||
|
|
||||||
again:
|
again:
|
||||||
if (!check_header_gzip(PASS_STATE_ONLY)) {
|
if (!check_header_gzip(PASS_STATE_ONLY)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user