Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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).
- Loading branch information
Showing
4 changed files
with
110 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
TBL-LAYOUT-SHORTLINES(1) General Commands Manual TBL-LAYOUT-SHORTLINES(1) | ||
|
||
|
||
|
||
NNAAMMEE | ||
tbl-layout-shortlines - table lines of different length | ||
|
||
DDEESSCCRRIIPPTTIIOONN | ||
normal text | ||
|
||
+------+-------+ | ||
|left | right | | ||
+------+-------+ | ||
|short | | | ||
+------+-------+ | ||
|left | right | | ||
+------+-------+ | ||
|
||
+-------------+-------+ | ||
|left | right | | ||
+-------------+-------+ | ||
|first short | | | ||
+-------------+-------+ | ||
|second short | | | ||
+-------------+-------+ | ||
|left | right | | ||
+-------------+-------+ | ||
|
||
+-----------+--------+-------+ | ||
|left | middle | right | | ||
+-----------+--------+-------+ | ||
|short | line | | | ||
+-----------+--------+-------+ | ||
|very short | | | | ||
+-----------+--------+-------+ | ||
|
||
+-----------+--------+-------+ | ||
|very short | | | | ||
+-----------+--------+-------+ | ||
|short | line | | | ||
+-----------+--------+-------+ | ||
|left | middle | right | | ||
+-----------+--------+-------+ | ||
|
||
|
||
|
||
|
||
OpenBSD June 11, 2019 TBL-LAYOUT-SHORTLINES(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters