aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit835540e0c710d0fcef85cc4e79f3200d559bc2c9 (patch)
tree892f10a95a8c810db492fb001ba07a501400fda8 /mandoc.1
parent74317de919ffbe0b012c3dc4777d6b55037b810a (diff)
downloadmandoc-835540e0c710d0fcef85cc4e79f3200d559bc2c9.tar.gz
mandoc-835540e0c710d0fcef85cc4e79f3200d559bc2c9.tar.zst
mandoc-835540e0c710d0fcef85cc4e79f3200d559bc2c9.zip
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.16
1 files changed, 5 insertions, 1 deletions
diff --git a/mandoc.1 b/mandoc.1
index cfc4f093..38dd795d 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -15,7 +15,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: August 27 2020 $
+.Dd $Mdocdate: September 1 2020 $
.Dt MANDOC 1
.Os
.Sh NAME
@@ -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.