]> 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)
committerUlrich Müller <ulm@gentoo.org>
Tue, 1 Aug 2023 11:23:04 +0000 (13:23 +0200)
* src/decompress.c (md5_gz_stream): Check 'stream.avail_in' as
well.  (Bug#63832)

Copyright-paperwork-exempt: yes
(cherry picked from commit 46b6d175054e8f6bf7cb45e112048c0cf02bfee9)

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);