source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: new regression test for roff.c rev.
@ 2023-10-22 16:57 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2023-10-22 16:57 UTC (permalink / raw)
  To: source

Log Message:
-----------
new regression test for roff.c rev. 1.270:
infinite recursion in macro argument expansion

Modified Files:
--------------
    mandoc/regress/roff/args:
        Makefile

Added Files:
-----------
    mandoc/regress/roff/args:
        infrec.in
        infrec.out_ascii
        infrec.out_lint

Revision Data
-------------
--- /dev/null
+++ regress/roff/args/infrec.out_lint
@@ -0,0 +1 @@
+mandoc: infrec.in:9:1: ERROR: input stack limit exceeded, infinite loop?
Index: Makefile
===================================================================
RCS file: /home/cvs/mandoc/mandoc/regress/roff/args/Makefile,v
retrieving revision 1.2
retrieving revision 1.3
diff -Lregress/roff/args/Makefile -Lregress/roff/args/Makefile -u -p -r1.2 -r1.3
--- regress/roff/args/Makefile
+++ regress/roff/args/Makefile
@@ -1,6 +1,7 @@
-# $OpenBSD: Makefile,v 1.5 2023/10/21 17:28:01 schwarze Exp $
+# $OpenBSD: Makefile,v 1.6 2023/10/22 16:54:19 schwarze Exp $
 
-REGRESS_TARGETS = roff man mdoc esc
-LINT_TARGETS	= roff man mdoc
+REGRESS_TARGETS = roff man mdoc esc infrec
+LINT_TARGETS	= roff man mdoc infrec
+SKIP_GROFF	= infrec
 
 .include <bsd.regress.mk>
--- /dev/null
+++ regress/roff/args/infrec.out_ascii
@@ -0,0 +1,9 @@
+ARGS-INFREC(1)              General Commands Manual             ARGS-INFREC(1)
+
+N\bNA\bAM\bME\bE
+       args-infrec - infinite recursion in macro argument expansion
+
+D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
+       initial text prefixpostfix final text
+
+OpenBSD                        October 22, 2023                 ARGS-INFREC(1)
--- /dev/null
+++ regress/roff/args/infrec.in
@@ -0,0 +1,10 @@
+.\" $OpenBSD: infrec.in,v 1.1 2023/10/22 16:54:19 schwarze Exp $
+.TH ARGS-INFREC 1 "October 22, 2023"
+.SH NAME
+args-infrec - infinite recursion in macro argument expansion
+.SH DESCRIPTION
+.ds mys first word
+.ds mys \\*[mys] another word
+initial text
+.RB prefix \\*[mys] postfix
+final text
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-22 16:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-22 16:57 mandoc: new regression test for roff.c rev schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).