Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix regex in utils.stackTraceFilter to prevent ReDoS #3416 #3686

Merged
merged 1 commit into from
Jan 30, 2019

Commits on Jan 30, 2019

  1. fix regex in utils.stackTraceFilter to prevent ReDoS mochajs#3416

    if the stack trace begins with a large error message (>= 20k charactors), and user leaves `--full-trace` disabled, `utils.stackTraceFilter()` takes ages to finish. Large error messages is quite possible when user makes containment assertions such as `expect(content).to.contain(word)`.
    cyjake committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    ec7699b View commit details
    Browse the repository at this point in the history