aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/compat_reallocarray.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-02-10 11:03:13 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-02-10 11:03:13 +0000
commit25662a4940503ffb064a92f60db8cd83050b1878 (patch)
treeebd3a989907ff2553c24cb89161877368d0d7f23 /compat_reallocarray.c
parent2f05117d9472fd6926678d83a6d992924f8809ef (diff)
downloadmandoc-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 'compat_reallocarray.c')
0 files changed, 0 insertions, 0 deletions