diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2019-06-11 16:04:36 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2019-06-11 16:04:36 +0000 |
commit | 818668a067fce10e78f5f5098bed05373f3338cf (patch) | |
tree | dbe3dba509cdc25ea9410027a003f6c37a44abb5 /regress/tbl/layout/shortlines.in | |
parent | ef195046e60def3f6de6b879bec45de18894e56a (diff) | |
download | mandoc-818668a067fce10e78f5f5098bed05373f3338cf.tar.gz |
Do not access a NULL pointer if a table contains a horizontal line
next to a table line having fewer columns than the table as a whole.
Bug found by Stephen Gregoratto <dev at sgregoratto dot me>
with aerc-config(5).
Diffstat (limited to 'regress/tbl/layout/shortlines.in')
-rw-r--r-- | regress/tbl/layout/shortlines.in | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/regress/tbl/layout/shortlines.in b/regress/tbl/layout/shortlines.in new file mode 100644 index 00000000..f6434619 --- /dev/null +++ b/regress/tbl/layout/shortlines.in @@ -0,0 +1,49 @@ +.\" $OpenBSD: shortlines.in,v 1.1 2019/06/11 15:40:41 schwarze Exp $ +.TH TBL-LAYOUT-SHORTLINES 1 "June 11, 2019" +.SH NAME +tbl-layout-shortlines \- table lines of different length +.SH DESCRIPTION +normal text +.TS +allbox tab(:); +L L +L +L L. +left:right +short +left:right +.TE +.sp +.TS +allbox tab(:); +L L +L +L +L L. +left:right +first short +second short +left:right +.TE +.sp +.TS +allbox tab(:); +L L L +L L +L. +left:middle:right +short:line +very short +.TE +.sp +.TS +allbox tab(:); +L +L L +L L L. +very short +short:line +left:middle:right +.TE + + |