aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tbl_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-12-24 09:58:35 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-12-24 09:58:35 +0000
commitfb95344148cb8c3ffd77776cedee32c2661cffa1 (patch)
tree8b623c201368f1b9046f9019e7f8b8804796667d /tbl_term.c
parente98af5414161553ffd7b765ad3a2451626334232 (diff)
downloadmandoc-fb95344148cb8c3ffd77776cedee32c2661cffa1.tar.gz
mandoc-fb95344148cb8c3ffd77776cedee32c2661cffa1.tar.zst
mandoc-fb95344148cb8c3ffd77776cedee32c2661cffa1.zip
When a man(7) document contains unreasonably large numbers for
indentations or paragraph distances, large output may be generated, which is practically the same as an endless loop; found by jsg@ with afl. Reject such unreasonably large numbers beyond arbitrary limits similar to those used by groff (max. 65 blank lines between paragraphs and max. SHRT_MAX characters per output line) and fall back to defaults when exceeded. Having the limits behave in exactly the same way is not relevant.
Diffstat (limited to 'tbl_term.c')
0 files changed, 0 insertions, 0 deletions