]> git.eshelyaron.com Git - emacs.git/commitdiff
Support files compressed by 'pigz'
authorAmritpal Singh <sysgrammer@protonmail.com>
Fri, 2 Jun 2023 05:21:21 +0000 (10:51 +0530)
committerEli Zaretskii <eliz@gnu.org>
Thu, 8 Jun 2023 09:40:44 +0000 (12:40 +0300)
* src/decompress.c (md5_gz_stream): Check 'stream.avail_in' as
well.  (Bug#63832)

Copyright-paperwork-exempt: yes

src/decompress.c

index 6ef17db07d685c16c5fd1313d2b258cfb518e783..162f6167b732840e4518304b8484c841d9eb1467 100644 (file)
@@ -151,7 +151,7 @@ md5_gz_stream (FILE *source, void *resblock)
        return -1;
 
       accumulate_and_process_md5 (out, MD5_BLOCKSIZE - stream.avail_out, &ctx);
-    } while (!stream.avail_out);
+    } while (stream.avail_in && !stream.avail_out);
 
   } while (res != Z_STREAM_END);