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 | 304ecda43472e85a726c792ca5c88b3f2655a892 (patch) | |
tree | 44de9f1d4e52a6c0f44067790c8343f7df46be19 /regress/tbl/layout/shortlines.in | |
parent | dfcfddad25114d69f0ea23cc3caf55ef9e7ce6e7 (diff) | |
download | mandoc-304ecda43472e85a726c792ca5c88b3f2655a892.tar.gz mandoc-304ecda43472e85a726c792ca5c88b3f2655a892.tar.zst mandoc-304ecda43472e85a726c792ca5c88b3f2655a892.zip |
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 + + |