mity / md4c

C Markdown parser. Fast. SAX-like interface. Compliant to CommonMark specification.
MIT License
755 stars 138 forks source link

Pathological input #236

Closed mity closed 5 months ago

mity commented 5 months ago

(Distilled from some data from oss-fuzz)

Pathological input generated with:

$ python -c 'print("]([\n" * 50000)'

leads to quadratic time behavior.