aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/tbl/layout/spacing.in
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 /regress/tbl/layout/spacing.in
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 'regress/tbl/layout/spacing.in')
-rw-r--r--regress/tbl/layout/spacing.in43
1 files changed, 43 insertions, 0 deletions
diff --git a/regress/tbl/layout/spacing.in b/regress/tbl/layout/spacing.in
new file mode 100644
index 00000000..228334b7
--- /dev/null
+++ b/regress/tbl/layout/spacing.in
@@ -0,0 +1,43 @@
+.\" $OpenBSD$
+.TH TBL-LAYOUT-SPACING 1 "September 1, 2020"
+.SH NAME
+tbl-layout-spacing \- spacing modifiers
+.SH DESCRIPTION
+default spacing:
+.TS
+box tab(:);
+R L.
+a:b
+.TE
+.sp
+spacing 0:
+.TS
+box tab(:);
+R 0 L.
+a:b
+.TE
+.sp
+spacing 1:
+.TS
+box tab(:);
+R 1 L.
+a:b
+.TE
+.sp
+spacing 2:
+.TS
+allbox tab(:);
+R 2 L.
+a:b
+.TE
+.sp
+spacing 5:
+.TS
+allbox tab(:);
+R 5|| L.
+a:b
+.TE
+.sp
+leaked tab settings:
+.br
+a b c d e f