Skip to content

pathologic input: O(n^2) with link ref. defs #844

@mity

Description

@mity

Input generated with this leads to O(n^2) both in time and output size:

$ python -c 'N=1000; print("[x]: " + "x" * N + "\n[x]" * N)'

(same as mity/md4c#238; cmark seems to limit number of link. ref. defs instantiations in some way so it is not vulnerable.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions