[#] http://marc.info/?l=openbsd-cvs&m=140836838320734&w=2
openbsd-cvs(obsdave,2) — All
2014-08-18 17:55:12


Module name: src
Changes by: schwarze@cvs.openbsd.org 2014/08/18 07:25:54

Modified files:
usr.bin/mandoc : mandoc.c

Log message:
kristaps@ found this with valgrind, merge his patch from bsd.lv:
Fix a corner case where \H<nil> (where <nil> is the \0 character) would
cause mandoc_escape() to read past the end of an allocated string.
Found when a script scanning of all Mac OSX manuals accidentally also
scanned binary (gzip'd) files, discussed with schwarze@ on tech@mdocml.