diff options
author | 2012-11-16 13:40:36 +0000 | |
---|---|---|
committer | 2012-11-16 13:40:36 +0000 | |
commit | ed556a16a0d0d619b59f20de7ff6e61eb00b0fde (patch) | |
tree | 1cedd65b21f47ef6f80aaed8bbc22e378457bed3 /chars.in | |
parent | 7ecfd5e3557e3ab058790b07c004742041bb86e0 (diff) | |
download | mandoc-ed556a16a0d0d619b59f20de7ff6e61eb00b0fde.tar.gz mandoc-ed556a16a0d0d619b59f20de7ff6e61eb00b0fde.tar.zst mandoc-ed556a16a0d0d619b59f20de7ff6e61eb00b0fde.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.
Completed and tested at the OpenBSD impromptu Coimbra hackathon (c2k12).
Thanks to Pedro Almeida and the Laborat'orio de Computa,c~ao Avan,cada
da Universidade de Coimbra (http://www.uc.pt/lca) for their hospitality!
Diffstat (limited to 'chars.in')
0 files changed, 0 insertions, 0 deletions