diff options
author | 2018-05-20 21:37:34 +0000 | |
---|---|---|
committer | 2018-05-20 21:37:34 +0000 | |
commit | 9ee4ba1339669e18191c1be3ccbcaa3ce73d5de1 (patch) | |
tree | 110ba2e3fb9e2230da3e27b602d6c4686f37350f /compat_strtonum.c | |
parent | 05d454ea5afdeb274e3fb040ef46da4a92af0826 (diff) | |
download | mandoc-9ee4ba1339669e18191c1be3ccbcaa3ce73d5de1.tar.gz mandoc-9ee4ba1339669e18191c1be3ccbcaa3ce73d5de1.tar.zst mandoc-9ee4ba1339669e18191c1be3ccbcaa3ce73d5de1.zip |
Protect against malicious manual pages containing .ll requests with
excessive arguments: apply the same cutoff as for the -O width=
command line argument.
While here, also place some assertions at strategical places to
prevent excessive indentations from being printed in case of bugs.
In the past, we had more than one bug that caused mandoc to print
effectively infinite output, filling up people's /tmp/ file system,
which is not funny. We cannot prevent bugs from crashing the
program, but we can at least make filling up the disk less likely.
Triggered by a remark from sthen@ on source-changes@.
Diffstat (limited to 'compat_strtonum.c')
0 files changed, 0 insertions, 0 deletions