Skip to content

Commit d8cb70c

Browse files
jgmkevinbackhouse
authored andcommitted
Add pathological test for repeated '<!--'.
1 parent 9144d3a commit d8cb70c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/pathological_tests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ def badhash(ref):
8787
"unclosed links B":
8888
("[a](b" * 30000,
8989
re.compile("(\[a\]\(b){30000}")),
90+
"unclosed <!--":
91+
("</" + "<!--" * 300000,
92+
re.compile("\&lt;\/(\&lt;!--){300000}")),
9093
"tables":
9194
("aaa\rbbb\n-\v\n" * 30000,
9295
re.compile("^<p>aaa</p>\n<table>\n<thead>\n<tr>\n<th>bbb</th>\n</tr>\n</thead>\n<tbody>\n(<tr>\n<td>aaa</td>\n</tr>\n<tr>\n<td>bbb</td>\n</tr>\n<tr>\n<td>-\x0b</td>\n</tr>\n){29999}</tbody>\n</table>\n$")),

0 commit comments

Comments
 (0)