CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]        2015/02/10 04:02:19

Modified files:
        usr.bin/mandoc : tbl_layout.c 
        regress/usr.bin/mandoc/tbl/mod: Makefile font.in font.out_ascii 
Added files:
        regress/usr.bin/mandoc/tbl/mod: badfont.in badfont.out_ascii 
                                        badfont.out_lint font.out_lint 

Log message:
Do not read past the end of the buffer if an "f" layout font modifier
is followed by the end of the input line instead of a font specifier.
Found by jsg@ with afl, test case #591.

While here, improve functionality as well:
* There is no "r" font modifier.
* Font specifiers (as opposed to font modifiers) are case sensitive.
* One-character font specifiers require trailing whitespace.
* Ignore parenthised and two-letter font specifiers.

Reply via email to