Strip UTF-8-encoded C1 control characters from rendered items
Before adoption: this commit came in with the history the project adopted, so no landing records it.
The display sanitizer already stripped raw 8-bit C1 bytes (0x80-0x9F) because they decode to RuneError as standalone bytes. Their valid UTF-8 encodings (0xC2 0x80 .. 0xC2 0x9F) decode to the same code points but were passed through, allowing a filename or input line containing CSI (U+009B), OSC (U+009D), or DCS (U+0090) to inject terminal control sequences when rendered.
authored by Junegunn Choi · committed by Junegunn Choi · parent b4a86a9 · Browse files · 1 file+2 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+2 added−1 removed
- other:+2 added−1 removed