diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2022-04-13 13:19:34 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2022-04-13 13:19:34 +0000 |
commit | 9460c128e40f65cfb15e776c2d51ea26f06b4ef7 (patch) | |
tree | 3212a93c32b0047172cb9d3c5c563ceb4fbab6c0 /regress/man/HP/literal.out_html | |
parent | 1bc6096c6e64021749cdac6c1bf7fa2d71336bf3 (diff) | |
download | mandoc-9460c128e40f65cfb15e776c2d51ea26f06b4ef7.tar.gz |
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/man/HP/literal.out_html')
0 files changed, 0 insertions, 0 deletions