I have cat as the preview for text/plain. Open joshuto and navigate to that file, the program will freeze and crash.
0x1b is ^[ (escape). I couldn't reproduce the bug without the newline at the end. I'm not sure if this happens with other control characters. It might be worth it to fuzz test joshuto previews?
I accidentally piped control characters to a file and tried to preview it and this crashed joshuto. Here's a minimal 2-byte reproducer:
I have
cat
as the preview for text/plain. Open joshuto and navigate to that file, the program will freeze and crash.0x1b is
^[
(escape). I couldn't reproduce the bug without the newline at the end. I'm not sure if this happens with other control characters. It might be worth it to fuzz test joshuto previews?