* Michal Zalewski <
lca...@gmail.com>, 2015-01-20, 14:07:
>>With my nitpicker hat on, I'd like to protest ;-) against AFL's
>>inconsistent use of colors in error messages. For example, here the
>>colon after "OS message" has the default color, but all the other
>>colons in the same column are red:
>>
https://i.imgur.com/2evLlVZ.png
>
>Scandalous!
>
>I am actually acutely aware of this atrocity, but was lazy in using
>perror, which doesn't give us sufficiently fine-grained control over
>this.
Well, you probably shouldn't mix perror() with SAYF() anyway, because
perror always prints to stderr and SAYF could print to stdout.
SAYF(..., strerror(errno)) should do the trick and let you paint the
colons any color you like. :-)
Speaking of colors, a Debian user complained[0] that error messages are
unreadable on white-background terminals. This should be easily fixable
by setting defining cBRI as "\x1b[0;1m".
But then, the status screen is also hardly readable on white-background
terminals, which is a know problem. Why can't afl-fuzz just set
background color to black ("\x1b[40m")?
[0]
https://bugs.debian.org/776624
--
Jakub Wilk