diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-08-19 17:28:58 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-08-19 17:28:58 +0000 |
commit | de5016a43a34e174728aa6da05dce5d7a9063fce (patch) | |
tree | 1f4c33a3b853367099b0eeb2ca8cb3d6892b631c /regress/usr.bin | |
parent | 51b70a5b7f48c000d4adf6b9a5146d66a5323346 (diff) |
Do not dereference a NULL pointer if a .Bl macro has
no -type, -width, -offset or -compact arguments whatsoever;
this got broken in mdoc_validate.c rev. 1.156.
While here, sort headers.
Diffstat (limited to 'regress/usr.bin')
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/notype.in | 12 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/notype.out_ascii | 10 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/notype.out_lint | 3 |
3 files changed, 20 insertions, 5 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/notype.in b/regress/usr.bin/mandoc/mdoc/Bl/notype.in index d28a5b0d82f..dce46bf80ba 100644 --- a/regress/usr.bin/mandoc/mdoc/Bl/notype.in +++ b/regress/usr.bin/mandoc/mdoc/Bl/notype.in @@ -5,14 +5,22 @@ .Nm Bl-notype .Nd lists with late or missing types .Sh DESCRIPTION -initial text +late type: .Bl -offset indent -bullet .It Some text. .El tail argument -middle text +.Pp +no type: .Bl -offset indent .It Some text. .El +.Pp +no argument at all: +.Bl +.It +Some text. +.El +.Pp final text diff --git a/regress/usr.bin/mandoc/mdoc/Bl/notype.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/notype.out_ascii index 02a9960338a..2bb4d069f56 100644 --- a/regress/usr.bin/mandoc/mdoc/Bl/notype.out_ascii +++ b/regress/usr.bin/mandoc/mdoc/Bl/notype.out_ascii @@ -4,12 +4,18 @@ NNAAMMEE BBll--nnoottyyppee - lists with late or missing types DDEESSCCRRIIPPTTIIOONN - initial text + late type: oo Some text. - middle text + + no type: Some text. + + no argument at all: + + Some text. + final text OpenBSD July 4, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Bl/notype.out_lint b/regress/usr.bin/mandoc/mdoc/Bl/notype.out_lint index ec90ae56602..c14bd0b46be 100644 --- a/regress/usr.bin/mandoc/mdoc/Bl/notype.out_lint +++ b/regress/usr.bin/mandoc/mdoc/Bl/notype.out_lint @@ -1,3 +1,4 @@ mandoc: notype.in:9:2: WARNING: list type is not the first argument: Bl -offset mandoc: notype.in:12:2: ERROR: skipping all arguments: El tail argument -mandoc: notype.in:14:2: ERROR: missing list type, using -item: Bl +mandoc: notype.in:15:2: ERROR: missing list type, using -item: Bl +mandoc: notype.in:21:2: ERROR: missing list type, using -item: Bl |