diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-24 09:58:35 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-24 09:58:35 +0000 |
commit | b90b724e08fcba984d8b57dd4b4bf1be91691628 (patch) | |
tree | 5fde85230f507da92dd2056c9445f8820b995b1f /test-ohash.c | |
parent | 4ad53635f5202474c55af90f70bba0ade18962cb (diff) | |
download | mandoc-b90b724e08fcba984d8b57dd4b4bf1be91691628.tar.gz |
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 'test-ohash.c')
0 files changed, 0 insertions, 0 deletions