diff options
author | 2017-02-10 16:20:34 +0000 | |
---|---|---|
committer | 2017-02-10 16:20:34 +0000 | |
commit | 129204d2b6e8eb95a79408a2653069d26ec852d7 (patch) | |
tree | d9186b8e7011c50d4fb39c5095211049de7aad18 /compat_progname.c | |
parent | a4aa2b1f59e2f2354dd17be89ef5ebc595a4bfc0 (diff) | |
download | mandoc-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 'compat_progname.c')
0 files changed, 0 insertions, 0 deletions