diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2022-04-13 13:11:34 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2022-04-13 13:11:34 +0000 |
commit | 240f27e00afafd9b3622f47e0cf87da52217f4b1 (patch) | |
tree | aa4c016502063cee2f020a441687da481a400963 /regress/usr.bin/mandoc/roff/esc/Makefile | |
parent | a027c6007238b2ded5ccbb4d60b6523baff82ecc (diff) |
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 handly arbitrary numbers of 'E's correctly.
Diffstat (limited to 'regress/usr.bin/mandoc/roff/esc/Makefile')
-rw-r--r-- | regress/usr.bin/mandoc/roff/esc/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/roff/esc/Makefile b/regress/usr.bin/mandoc/roff/esc/Makefile index 8c4fdaba653..4c152fc4fa7 100644 --- a/regress/usr.bin/mandoc/roff/esc/Makefile +++ b/regress/usr.bin/mandoc/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 |