From: schwarze@mandoc.bsd.lv
To: source@mandoc.bsd.lv
Subject: mandoc: new regression test for roff.c rev.
Date: Sun, 22 Oct 2023 16:57:54 +0000 (UTC) [thread overview]
Message-ID: <94816e38a018e19a@mandoc.bsd.lv> (raw)
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
reply other threads:[~2023-10-22 16:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=94816e38a018e19a@mandoc.bsd.lv \
--to=schwarze@mandoc.bsd.lv \
--cc=source@mandoc.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).