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 | fb95344148cb8c3ffd77776cedee32c2661cffa1 (patch) | |
| tree | 8b623c201368f1b9046f9019e7f8b8804796667d /mdoc.h | |
| parent | e98af5414161553ffd7b765ad3a2451626334232 (diff) | |
| download | mandoc-fb95344148cb8c3ffd77776cedee32c2661cffa1.tar.gz 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 'mdoc.h')
0 files changed, 0 insertions, 0 deletions
