aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/mdoc/break/twice.out_ascii
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-02-16 09:47:31 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-02-16 09:47:31 +0000
commitaabe46b7c8c0f9da0079b71a1eb350536961bc3f (patch)
tree39fb19e2d44158549869c4fe305c6058e4ec8abc /regress/mdoc/break/twice.out_ascii
parent873dc9b1d77212924c035df9c1accfbb3a4a6a7e (diff)
downloadmandoc-aabe46b7c8c0f9da0079b71a1eb350536961bc3f.tar.gz
mandoc-aabe46b7c8c0f9da0079b71a1eb350536961bc3f.tar.zst
mandoc-aabe46b7c8c0f9da0079b71a1eb350536961bc3f.zip
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_ascii')
-rw-r--r--regress/mdoc/break/twice.out_ascii14
1 files changed, 9 insertions, 5 deletions
diff --git a/regress/mdoc/break/twice.out_ascii b/regress/mdoc/break/twice.out_ascii
index c6d0149d..75302910 100644
--- a/regress/mdoc/break/twice.out_ascii
+++ b/regress/mdoc/break/twice.out_ascii
@@ -4,12 +4,16 @@ NNAAMMEE
bbrreeaakk--ttwwiiccee - breaking the same block twice
DDEESSCCRRIIPPTTIIOONN
- Standard case, explicit: [bo {bro <ao brc} bc] ac>
+ Standard case, fully explicit: [bo {bro <ao brc} bc] ac>
- Standard case, implicit: [bo {bro <aq brc} bc] eol>
+ Standard case, implicit broken block: [bo {bro <aq brc} bc] eol>
- Two of the same kind, explicit: [bo [bo <ao bc] bc] ac>
+ Two of the same kind, fully explicit: [bo [bo <ao bc] bc] ac>
- Two of the same kind, implicit: [bo [bo <aq bc] bc] eol>
+ Two of the same kind, implicit broken block: [bo [bo <aq bc] bc] eol>
-OpenBSD February 12, 2015 OpenBSD
+ Two implicit breakers: <aq [bq (po]> pc)
+
+ -- it
+
+OpenBSD February 16, 2017 OpenBSD