- Commit
- 450c43badee13eb84e771ecaf66f0ac113e111c0
- Parent
- 2efea7a064e911311979e0387d6d99abe9c6020a
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Added pathological test for backticks.
Currently aborts.
My personal build of CMark ✏️
Added pathological test for backticks.
Currently aborts.
1 file changed, 4 insertions, 1 deletion
Status | File Name | N° Changes | Insertions | Deletions |
Modified | test/pathological_tests.py | 5 | 4 | 1 |
diff --git a/test/pathological_tests.py b/test/pathological_tests.py @@ -52,7 +52,10 @@ pathological = { re.compile("(<blockquote>\n){50000}")), "U+0000 in input": ("abc\u0000de\u0000", - re.compile("abc\ufffd?de\ufffd?")) + re.compile("abc\ufffd?de\ufffd?")), + "backticks": + ("".join(map(lambda x: ("e" + "`" * x), range(1,10000))), + re.compile("^<p>[e`]*</p>\n$")) } whitespace_re = re.compile('/s+/')