From 835540e0c710d0fcef85cc4e79f3200d559bc2c9 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 1 Sep 2020 18:25:27 +0000 Subject: Ignore unreasonably large spacing modifiers in tbl layouts. Jan Schreiber 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(). --- mandoc.1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mandoc.1') 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. -- cgit v1.2.3-56-ge451