diff options
| author | 2012-11-16 13:25:34 +0000 | |
|---|---|---|
| committer | 2012-11-16 13:25:34 +0000 | |
| commit | 606f14935ad56c181dc4337ef62904edfef33f45 (patch) | |
| tree | 65147d516498ac097fcc476c058e41d936707b8f /usr.bin/mandoc/libmdoc.h | |
| parent | two spelling fixes; from John-Mark Gurney (freebsd -r243048); (diff) | |
| download | wireguard-openbsd-606f14935ad56c181dc4337ef62904edfef33f45.tar.xz wireguard-openbsd-606f14935ad56c181dc4337ef62904edfef33f45.zip | |
Fix a crash triggered by .Bl -tag .It Xo .El .Sh found by florian@.
* When allocating a body end marker, copy the pointer to the normalized
block information from the body block, avoiding the risk of subsequent
null pointer derefence.
* When inserting the body end marker into the syntax tree, do not try to
copy that pointer from the parent block, because not being a direkt child
of the block it belongs to is the whole point of a body end marker.
* Even non-callable blocks (like Bd and Bl) can break other blocks;
when this happens, postpone closing them out in the usual way.
Diffstat (limited to 'usr.bin/mandoc/libmdoc.h')
0 files changed, 0 insertions, 0 deletions
