]> git.cameronkatri.com Git - mandoc.git/commit
Element next-line scopes may nest, so man_breakscope() may have to
authorIngo Schwarze <schwarze@openbsd.org>
Thu, 28 Apr 2022 10:26:37 +0000 (10:26 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Thu, 28 Apr 2022 10:26:37 +0000 (10:26 +0000)
commit4739b39372b31b9276373673e199b90e33fb70a8
treeff5870d41a82b125632e2b5e08ef6f1c3afcbd0e
parent25152678ffdb7653b13569fefe86cb617d1e0532
Element next-line scopes may nest, so man_breakscope() may have to
break multiple element next-line scopes at the same time, similar to
what man_descope() already does for unconditional rewinding.

This fixes an assertion failure that tb@ found with afl(1), caused
by .SH .I .I .BI and similar sequences of macros without arguments.
man.c
regress/man/B/Makefile
regress/man/B/nest.in [new file with mode: 0644]
regress/man/B/nest.out_ascii [new file with mode: 0644]
regress/man/B/nest.out_lint [new file with mode: 0644]