CVSROOT:        /cvs
Module name:    src
Changes by:     schwa...@cvs.openbsd.org        2017/02/10 09:20:58

Modified files:
        usr.bin/mandoc : mdoc_macro.c 

Log message:
Oops, the previous commit unintentionally included this file.
The intended commit message for rev. 1.167 is:

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).

Reply via email to