zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
24.95k stars 1.17k forks source link

Raw mode crashes micro after receiving 1000+ inputs #3140

Closed 0x5c closed 6 months ago

0x5c commented 7 months ago

Description of the problem or steps to reproduce

In raw mode, give 999 inputs. Giving one more will crash micro.

Technically the 1000th input gets printed fine, but it triggers an asynchronous crash somewhere else, so one can theoretically see a line ~1035 before the crash if flooding inputs fast enough, like when scrolling fast.

Specifications

Commit hash: (release tag)

Version: 2.0.13
Commit hash: Unknown
Compiled on Unknown

OS: Voidlinux Terminal: Contour

dmaluka commented 7 months ago

Duplicate of #2991. Should be fixed by #2992.

JoeKar commented 6 months ago

Closed with #2992.