summaryrefslogtreecommitdiffstats
path: root/term_ps.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-03-19 16:26:08 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-03-19 16:26:08 +0000
commit4af7601e56b07fe1eb2c110fd7633ef66197ae30 (patch)
treebf3230e3e37427be36fec1ec8146a89cd0158a6d /term_ps.c
parent034fc65e0973095b716d53e0292987e393d4bfa3 (diff)
downloadmandoc-4af7601e56b07fe1eb2c110fd7633ef66197ae30.tar.gz
When the last line of the input is empty and the previous line reduced
the line input buffer to a length of one byte, do not write one byte past the end of the line input buffer. Minimal code to show the bug: printf ".ds X\n.X\n\n" | MALLOC_OPTIONS=C mandoc Bug found by bentley@ in the sysutils/rancid par(1) manual page.
Diffstat (limited to 'term_ps.c')
0 files changed, 0 insertions, 0 deletions