mirror of
https://github.com/mirror/wget.git
synced 2025-03-09 17:20:33 +08:00
* src/progress.c (dot_draw): Avoid integer overflow
This commit is contained in:
parent
03a8e59d85
commit
61b8078672
@ -386,6 +386,7 @@ dot_draw (void *progress)
|
||||
++dp->dots;
|
||||
if (dp->dots >= opt.dots_in_line)
|
||||
{
|
||||
if (dp->rows < INT_MAX)
|
||||
++dp->rows;
|
||||
dp->dots = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user