diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-16 09:47:31 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-16 09:47:31 +0000 |
commit | 884a60b25e9e47062115672eba1e8ab234747909 (patch) | |
tree | fad98de44d0bb6be0b72e84522cbf4389b723dd6 /regress/mdoc/break/twice.out_lint | |
parent | b36c2e4756f2b576b474a61019f15645f0cf8388 (diff) | |
download | mandoc-884a60b25e9e47062115672eba1e8ab234747909.tar.gz |
Fix block scoping error if an explicit block is broken by two
implicit blocks (.Aq Bq Po .Pc) that left the outer breaker open
and could in exceptional cases, like between .Bl and .It, cause
tree corruption leading to NULL dereference.
Found by tb@ with afl(1).
While here, do not mark intermediate ENDBODY markers as broken.
Diffstat (limited to 'regress/mdoc/break/twice.out_lint')
-rw-r--r-- | regress/mdoc/break/twice.out_lint | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/regress/mdoc/break/twice.out_lint b/regress/mdoc/break/twice.out_lint index 6ac976c0..150800e9 100644 --- a/regress/mdoc/break/twice.out_lint +++ b/regress/mdoc/break/twice.out_lint @@ -6,3 +6,6 @@ mandoc: twice.in:25:2: WARNING: blocks badly nested: Bo breaks Ao mandoc: twice.in:26:2: WARNING: blocks badly nested: Bo breaks Ao mandoc: twice.in:32:11: WARNING: blocks badly nested: Bo breaks Aq mandoc: twice.in:32:17: WARNING: blocks badly nested: Bo breaks Aq +mandoc: twice.in:36:8: WARNING: blocks badly nested: Bq breaks Po +mandoc: twice.in:36:2: WARNING: blocks badly nested: Aq breaks Po +mandoc: twice.in:36:2: WARNING: moving content out of list: Aq |