Security fix:
authorschwarze <schwarze@openbsd.org>
Wed, 23 Jul 2014 15:00:00 +0000 (15:00 +0000)
committerschwarze <schwarze@openbsd.org>
Wed, 23 Jul 2014 15:00:00 +0000 (15:00 +0000)
commit71f7ad472f7967c3219230656a636c2ebbe25729
treee781e6f8fe375d2a6b35317e959ca9dcc3813bd0
parent6643efa75de07f821a47cfa8159943ae3a10a141
Security fix:
After decoding numeric (\N) and one-character (\<, \> etc.)
character escape sequences, do not forget to HTML-encode the
resulting ASCII character.  Malicious manuals were able to smuggle
XSS content by roff-escaping the HTML-special characters they need.
That's a classic bug type in many web applications, actually...  :-(

Found myself while auditing the HTML formatter for safe output handling.
usr.bin/mandoc/chars.c
usr.bin/mandoc/html.c