From 6d805c41a1ebaced20ab413c14db4fa70c044f2c Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 9 Sep 2020 17:01:10 +0000 Subject: Element next-line scopes can nest. Consequently, even when closing one element next-line scope, the MAN_ELINE flag must not yet be cleared if the parent macro is another element macro having next-line scope, or an assertion failure is caused if all this is wrapped in another macro that has block next-line scope, for example .TP. Bug found in an afl run performed by Jan Schreiber . --- regress/man/TP/broken.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'regress/man/TP/broken.in') diff --git a/regress/man/TP/broken.in b/regress/man/TP/broken.in index 686b5559..b0813432 100644 --- a/regress/man/TP/broken.in +++ b/regress/man/TP/broken.in @@ -1,7 +1,7 @@ -.\" $OpenBSD: broken.in,v 1.3 2017/07/04 14:53:24 schwarze Exp $ -.TH TP-BROKEN 1 "December 16, 2014" +.\" $OpenBSD: broken.in,v 1.4 2020/09/09 16:57:05 schwarze Exp $ +.TH TP-BROKEN 1 "September 9, 2020" .SH NAME -TP-broken \- broken tagged paragraph +TP-broken \- broken tagged paragraphs .SH DESCRIPTION regular text @@ -16,3 +16,6 @@ text head body +.TP +.B +.I -- cgit v1.2.3