aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAmritpal Singh2023-06-02 10:51:21 +0530
committerUlrich Müller2023-08-01 13:23:04 +0200
commit608a8757d9fa54bc2fd57180b0347931db9c46b0 (patch)
tree6c7d9589f490641a0802b48551a74c6b5d539455 /src
parent0c29f53ab8723dd5a9f31ce8a6e913cc08132e56 (diff)
downloademacs-608a8757d9fa54bc2fd57180b0347931db9c46b0.tar.gz
emacs-608a8757d9fa54bc2fd57180b0347931db9c46b0.zip
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)
Diffstat (limited to 'src')
-rw-r--r--src/decompress.c2
1 files changed, 1 insertions, 1 deletions
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)
151 return -1; 151 return -1;
152 152
153 accumulate_and_process_md5 (out, MD5_BLOCKSIZE - stream.avail_out, &ctx); 153 accumulate_and_process_md5 (out, MD5_BLOCKSIZE - stream.avail_out, &ctx);
154 } while (!stream.avail_out); 154 } while (stream.avail_in && !stream.avail_out);
155 155
156 } while (res != Z_STREAM_END); 156 } while (res != Z_STREAM_END);
157 157