Closed mity closed 4 months ago
Input generated with this leads to O(n^2) in time and space (output size):
$ python -c 'N=1000; print("[x]: " + "x" * N + "\n[x]" * N)'
Seems cmark stops generating the links after reaching some threshold, pulldown-cmark is vulnerable too.
cmark
pulldown-cmark
Input generated with this leads to O(n^2) in time and space (output size):