aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/roff/esc/Makefile
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-04-13 13:19:34 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-04-13 13:19:34 +0000
commitca9bc03cff40f97d7cd61a8a1ad5f04878abee7a (patch)
tree26610d2bdaaa6010c584a31ecdea9305ababb927 /regress/roff/esc/Makefile
parentef4cc03dbb7deeb4329a74e97c09433301435a54 (diff)
downloadmandoc-ca9bc03cff40f97d7cd61a8a1ad5f04878abee7a.tar.gz
mandoc-ca9bc03cff40f97d7cd61a8a1ad5f04878abee7a.tar.zst
mandoc-ca9bc03cff40f97d7cd61a8a1ad5f04878abee7a.zip
Surprisingly, groff supports multiple copy mode escapes at the
beginning of an escape sequence: \, \E, \EE, \EEE, and so on all do the same outside copy mode, so let them do the same in mandoc(1), too. This fixes an assertion failure triggered by \EE*X that tb@ found with afl(1). The first E was consumed by roff_expand(), but that function failed to recognize the escape sequence as the expansion of a user-defined string and handed it over to mandoc_escape(), which consumed the second E and then died on an assertion because it is not prepared to handle user-defined strings. Fix this by letting *both* functions handle arbitrary numbers of 'E's correctly.
Diffstat (limited to 'regress/roff/esc/Makefile')
-rw-r--r--regress/roff/esc/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/roff/esc/Makefile b/regress/roff/esc/Makefile
index 8c4fdaba..4c152fc4 100644
--- a/regress/roff/esc/Makefile
+++ b/regress/roff/esc/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.17 2020/12/21 14:55:58 schwarze Exp $
+# $OpenBSD: Makefile,v 1.18 2022/04/13 13:11:33 schwarze Exp $
-REGRESS_TARGETS = one two multi B bs_man bs_mdoc c c_man e f h l O1 o p w z
+REGRESS_TARGETS = one two multi B bs_man bs_mdoc c c_man E1 e f h l O1 o p w z
REGRESS_TARGETS += ignore invalid unsupp
HTML_TARGETS = f
LINT_TARGETS = B h l O1 w ignore invalid unsupp