Division by zero if terminal width is 2
C
curl
Submitted None
Actions:
Reported by
danielmarjamaki
Vulnerability Details
Technical details and impact analysis
## Summary:
In fly() there will be a division by zero if progress bar width is 2.
That can happen if terminal width is 2.
## Steps To Reproduce:
This script crash:
stty rows 10 cols 2 ; curl --progress-bar somefile > temp
## Impact
I believe that if it's possible to set terminal width for a service, then that service will not be able to curl.
Report Details
Additional information and metadata
State
Closed
Substate
Informative
Submitted
Weakness
Improper Input Validation