mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Prevent infinite loop in runzip_fd with crafted/damaged archive.
This commit is contained in:
parent
07bb66e284
commit
b84c710902
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 {
|
do {
|
||||||
u = runzip_chunk(control, fd_in, expected_size, total);
|
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");
|
print_err("Failed to runzip_chunk in runzip_fd\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue