mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-04-05 06:15:28 +00:00
We have to run through the clear buffer function even for empty buffers or corrupt archives with empty match streams.
This commit is contained in:
parent
568dffafbc
commit
5c811a9311
1 changed files with 2 additions and 3 deletions
5
stream.c
5
stream.c
|
|
@ -1758,9 +1758,8 @@ int close_stream_out(rzip_control *control, void *ss)
|
|||
int i;
|
||||
|
||||
for (i = 0; i < sinfo->num_streams; i++) {
|
||||
if (sinfo->s[i].buflen)
|
||||
if (unlikely(!clear_buffer(control, sinfo, i, 0)))
|
||||
return -1;
|
||||
if (unlikely(!clear_buffer(control, sinfo, i, 0)))
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (ENCRYPT) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue