summaryrefslogtreecommitdiffstats
path: root/mandoc.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-09-01 18:25:27 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-09-01 18:25:27 +0000
commite6403d9b9e46516e77bb92cf68112cfcb0973755 (patch)
tree7affdbee4b7ac434da019231007e844be70e8542 /mandoc.1
parentf464f576eb974f463c50cdb91fa8dcf128fe6aac (diff)
downloadmandoc-e6403d9b9e46516e77bb92cf68112cfcb0973755.tar.gz
Ignore unreasonably large spacing modifiers in tbl layouts.
Jan Schreiber <jes at posteo dot de> ran afl on mandoc and it turned out mandoc tried to use spacing modifiers so large that they would trigger assertion failures in term_ascii.c, function locale_advance().
Diffstat (limited to 'mandoc.1')
-rw-r--r--mandoc.14
1 files changed, 4 insertions, 0 deletions
diff --git a/mandoc.1 b/mandoc.1
index a41ae5e2..ffc291dd 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -1850,6 +1850,10 @@ The invalid character is discarded.
A table layout specification contains an opening parenthesis,
but no matching closing parenthesis.
The rest of the input line, starting from the parenthesis, has no effect.
+.It Sy "ignoring excessive spacing in tbl layout"
+.Pq tbl
+A spacing modifier in a table layout is unreasonably large.
+The default spacing of 3n is used instead.
.It Sy "tbl without any data cells"
.Pq tbl
A table does not contain any data cells.