]> git.cameronkatri.com Git - mandoc.git/commit
Do not die on an assertion if an input file contains no section
authorIngo Schwarze <schwarze@openbsd.org>
Wed, 13 Apr 2022 14:45:50 +0000 (14:45 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Wed, 13 Apr 2022 14:45:50 +0000 (14:45 +0000)
commit4062479d6729bdfb0de4954e7a413ca3282d17cd
tree9ef35b186e377ce875cbb2d651d6f4ee726d2fc5
parentca9bc03cff40f97d7cd61a8a1ad5f04878abee7a
Do not die on an assertion if an input file contains no section
whatsoever and ends with a broken next-line scope.  Obviously, this
cannot happen in a real manual page, but mandoc(1) should not die
even when fed absurd input.

This bug was independently reported by both jsg@ and tb@ who both
found it with afl(1).
man_macro.c
regress/man/TH/nobody.in
regress/man/TH/nobody.out_ascii
regress/man/TH/nobody.out_lint