mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-04-21 06:03:54 +00:00
Prevent infinite loop in runzip_fd with crafted/damaged archive.
This commit is contained in:
parent
07bb66e284
commit
b84c710902
1 changed files with 1 additions and 1 deletions
2
runzip.c
2
runzip.c
|
|
@ -380,7 +380,7 @@ i64 runzip_fd(rzip_control *control, int fd_in, int fd_out, int fd_hist, i64 exp
|
|||
|
||||
do {
|
||||
u = runzip_chunk(control, fd_in, expected_size, total);
|
||||
if (unlikely(u == -1)) {
|
||||
if (unlikely(u < 1)) {
|
||||
print_err("Failed to runzip_chunk in runzip_fd\n");
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue