From 542c1637b2aa66c10482a33ceadc5cdd96dbbda3 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 7 May 2011 23:58:38 +1000 Subject: [PATCH] Cope with zero byte older files in get fileinfo. --- lrzip.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lrzip.c b/lrzip.c index 06c4d6e..68a7251 100644 --- a/lrzip.c +++ b/lrzip.c @@ -827,6 +827,9 @@ void get_fileinfo(rzip_control *control) ofs = 26 + chunk_byte; header_length = 1 + (chunk_byte * 3); } + if (control->major_version == 0 && control->minor_version < 6 && + !expected_size) + goto done; next_chunk: stream = 0; stream_head[0] = 0;