diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2020-09-01 18:25:27 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2020-09-01 18:25:27 +0000 |
commit | 835540e0c710d0fcef85cc4e79f3200d559bc2c9 (patch) | |
tree | 892f10a95a8c810db492fb001ba07a501400fda8 /mandoc.h | |
parent | 74317de919ffbe0b012c3dc4777d6b55037b810a (diff) | |
download | mandoc-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.h')
-rw-r--r-- | mandoc.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: mandoc.h,v 1.268 2020/04/24 12:02:33 schwarze Exp $ */ +/* $Id: mandoc.h,v 1.269 2020/09/01 18:25:27 schwarze Exp $ */ /* * Copyright (c) 2012-2020 Ingo Schwarze <schwarze@openbsd.org> * Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> @@ -189,6 +189,7 @@ enum mandocerr { MANDOCERR_TBLLAYOUT_NONE, /* empty tbl layout */ MANDOCERR_TBLLAYOUT_CHAR, /* invalid character in tbl layout: char */ MANDOCERR_TBLLAYOUT_PAR, /* unmatched parenthesis in tbl layout */ + MANDOCERR_TBLLAYOUT_SPC, /* ignoring excessive spacing in tbl layout */ MANDOCERR_TBLDATA_NONE, /* tbl without any data cells */ MANDOCERR_TBLDATA_SPAN, /* ignoring data in spanned tbl cell: data */ MANDOCERR_TBLDATA_EXTRA, /* ignoring extra tbl data cells: data */ |