emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 608a8757d9f: Support files compressed by 'pigz'


From: Ulrich Müller
Subject: emacs-29 608a8757d9f: Support files compressed by 'pigz'
Date: Tue, 1 Aug 2023 07:23:30 -0400 (EDT)

branch: emacs-29
commit 608a8757d9fa54bc2fd57180b0347931db9c46b0
Author: Amritpal Singh <sysgrammer@protonmail.com>
Commit: Ulrich Müller <ulm@gentoo.org>

    Support files compressed by 'pigz'
    
    * 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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/decompress.c b/src/decompress.c
index 6ef17db07d6..162f6167b73 100644
--- a/src/decompress.c
+++ b/src/decompress.c
@@ -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);
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]