Debian Codegraph @

texk/detex/testverb.tex

raw
1 % $Id: testverb.tex 64408 2022-09-15 21:56:48Z karl $
2 % Sadly, this is not tested as part of make check; if you feel so
3 % inclined, please add it. For now, just including the file for the record.
4 %
5 % The problem was that the \verb parsing in detex.l did not check for
6 % going past eof when looking for the matching delimiter. With random
7 % stuff following the \verb, this would typically cause a crash ("in
8 % __memmove_avx_unaligned_erms") as buffers filled with junk.
9 %
10 % Testing for eof before the opening delimiter catches another case in
11 % the code.
12 %
13 % Also, as long as we're here, might as well check that the closing
14 % delimiter is found on the same line as the opening, since that's what
15 % LaTeX requires.
16 %
17 % Bug report sent by Preston Moore to tlsecurity, 08 Jun 2022 22:21:28.
18 %
19 \begin{document} % force interpretation as LaTeX
20 \verb+ok+
21 \verb|
22 \verb