Skip to content

Autolinker can exceed the call stack #171

Closed
@wojcikstefan

Description

@wojcikstefan

The code below will result in Uncaught RangeError: Maxiumum call stack exceeded:

var test = function() {
    var t = [];
    for (var i = 0; i < 50000; i++) {
        t.push(' /&gt;&lt;br');
    };
    return t.join('');
};
a = new Autolinker();
var result = a.link(test());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions