Crash when iterating over lines of empty Rope
Closed this issue · 1 comments
juanibiapina commented
https://github.com/an-cabal/an-rope/blob/master/src/lib.rs#L754
This lines blows up with overflow.
hawkw commented
Hi @juanibiapina, thanks for reporting! This line should probably be replaced with saturating arithmetic to avoid the overflow. Eventually, I think there really ought to be a large scale audit of potential overflows.