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.out_lint | 3 +++ 1 file changed, 3 insertions(+) (limited to 'regress/man/TP/broken.out_lint') diff --git a/regress/man/TP/broken.out_lint b/regress/man/TP/broken.out_lint index 2539a622..a0b83e81 100644 --- a/regress/man/TP/broken.out_lint +++ b/regress/man/TP/broken.out_lint @@ -1,2 +1,5 @@ mandoc: broken.in:11:2: WARNING: line scope broken: RE breaks TP mandoc: broken.in:16:1: WARNING: skipping blank line in line scope +mandoc: broken.in:21:2: WARNING: line scope broken: EOF breaks I +mandoc: broken.in:20:2: WARNING: line scope broken: EOF breaks B +mandoc: broken.in:19:2: WARNING: line scope broken: EOF breaks TP -- cgit v1.2.3-56-ge451