]> git.cameronkatri.com Git - mandoc.git/commit
Jumping out of man_unscope() for the root node is a bad idea
authorIngo Schwarze <schwarze@openbsd.org>
Sun, 4 Dec 2011 00:44:12 +0000 (00:44 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Sun, 4 Dec 2011 00:44:12 +0000 (00:44 +0000)
commit7c0b7e474e29ae0b4e927c6d06ad2881e2f95eec
treedaded8457cd9a70770363a061aaa716956a0c353
parent0f10c53eb575a6891b9d903803ee9f23251f36fd
Jumping out of man_unscope() for the root node is a bad idea
because that will skip root node validation, potentially entering
rendering modules will NULL pointers lurking in the meta data.
Instead, always validate the root node and (as suggested by joerg@)
assert validity of the meta data before using it in the renderers.
ok joerg@
man_html.c
man_macro.c
man_term.c