aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/NEWS
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-02-10 16:20:34 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-02-10 16:20:34 +0000
commit129204d2b6e8eb95a79408a2653069d26ec852d7 (patch)
treed9186b8e7011c50d4fb39c5095211049de7aad18 /NEWS
parenta4aa2b1f59e2f2354dd17be89ef5ebc595a4bfc0 (diff)
downloadmandoc-129204d2b6e8eb95a79408a2653069d26ec852d7.tar.gz
mandoc-129204d2b6e8eb95a79408a2653069d26ec852d7.tar.zst
mandoc-129204d2b6e8eb95a79408a2653069d26ec852d7.zip
In the SYNOPSIS, .Nm blocks can get broken if one of their children
gets broken. In that case, mark them as BROKEN and ENDED and make sure they get closed out together with the child. Fixes tree corruption leeding to a NULL dereference found by tb@ with afl(1) in: .Sh SYNOPSIS .Bl .Oo .Nm .Bk .Oc .It (where .Bk is the child and .Oo is the breaker). A simpler form of the same corruption (without crash) is visible in: .Sh SYNOPSIS .Ao .Nm .Bo .Ac .Bc text where the text ended up inside the .Nm (child .Bo, breaker .Ao).
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS4
1 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index e5824131..d2084a21 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-$Id: NEWS,v 1.15 2017/02/10 15:45:28 schwarze Exp $
+$Id: NEWS,v 1.16 2017/02/10 16:20:34 schwarze Exp $
This file lists the most important changes in the mdocml.bsd.lv distribution.
@@ -52,6 +52,8 @@ Changes in version 1.14.1, released on February XXX, 2017
for macro sequences like .Bl .Bl .It Bo .El .It.
* mdoc(7): Fix syntax tree corruption leading to NULL dereference
caused by .Ta following a nested .Bl -column breaking another block.
+ * mdoc(7): Fix syntax tree corruption sometimes leading to NULL
+ dereference caused by indirectly broken .Nm blocks in the SYNOPSIS.
* mdoc(7) -Thtml: Fix a NULL dereference for .Bl -column with 0 columns.
* mdoc(7): Fix NULL dereference if the only child of the head
of the first .Sh was an empty in-line macro.