henrik / progress_bar

Command-line progress bars and spinners for Elixir.
MIT License
329 stars 20 forks source link

Negative input causes crash #28

Closed CyberKillerPenta closed 1 year ago

CyberKillerPenta commented 1 year ago

There is a bug which causes a crash (of your entire machine). If you accidentally put a negative value into ProgressBar.render(-1 , 10) the system will be out of memory at some point. Try to replicate the bug in iex -S mix