Closed CleanCut closed 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).
(n - 1) / n
n
rx
Return
Backspace
Good catch, thanks!
The current code has an
(n - 1) / n
chance of crashing when you delete one ofn
frames. It's trivial to trigger the crash by startingrx
and repeatedly pressingReturn
and thenBackspace
(repeat until crash occurs, it won't take long).