hishamhm/htop — pull request #111 by horazont (2014-07-08 11:23:01+00:00)
Title: Omit non-printable characters with widechar curses

This patch replaces nonprintable characters with '?' (questionmark), just like ps and htop without widechar curses handle this.

This prevents possible spoofing attacks using control characters to misplace output (in my tests, using a nonprintable character made the cursor move one character to the left, thus I was able to override other colmuns contents using my process’ name).