cloudhead / rx

👾 Modern and minimalist pixel editor
https://discord.gg/xHggPjfsS9
GNU General Public License v3.0
3.07k stars 109 forks source link

Avoid crashing when frame has been deleted #118

Closed CleanCut closed 2 years ago

CleanCut commented 2 years ago

The current code has an (n - 1) / n chance of crashing when you delete one of n frames. It's trivial to trigger the crash by starting rx and repeatedly pressing Return and then Backspace (repeat until crash occurs, it won't take long).

cloudhead commented 2 years ago

Good catch, thanks!