diff options
author | 2015-02-10 11:03:13 +0000 | |
---|---|---|
committer | 2015-02-10 11:03:13 +0000 | |
commit | 25662a4940503ffb064a92f60db8cd83050b1878 (patch) | |
tree | ebd3a989907ff2553c24cb89161877368d0d7f23 /test-strlcpy.c | |
parent | 2f05117d9472fd6926678d83a6d992924f8809ef (diff) | |
download | mandoc-25662a4940503ffb064a92f60db8cd83050b1878.tar.gz mandoc-25662a4940503ffb064a92f60db8cd83050b1878.tar.zst mandoc-25662a4940503ffb064a92f60db8cd83050b1878.zip |
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.
Diffstat (limited to 'test-strlcpy.c')
0 files changed, 0 insertions, 0 deletions