[BACK]Return to spacing.in CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / tbl / layout

File: [cvsweb.bsd.lv] / mandoc / regress / tbl / layout / spacing.in (download)

Revision 1.1, Tue Sep 1 18:25:29 2020 UTC (3 years, 9 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6, HEAD

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().

.\" $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