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(utils): Don't run stack trace regexes over huge strings #6627

Merged
merged 1 commit into from Jan 4, 2023

Conversation

timfish
Copy link
Collaborator

@timfish timfish commented Dec 29, 2022

Closes #2286

The CI code scanning previously warned about our stack trace regexes having the potential for DoS due to backtracking and exponential time required for large input strings. We ignored these CI warnings since the JavaScript SDKs have always contained these regexes but since a customer has reported a 90 second hang caused by this it makes sense to add some sensible limits.

@timfish timfish self-assigned this Dec 30, 2022
Copy link
Member

@mydea mydea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds reasonable to me! 👍

@mydea mydea requested review from a team, Lms24 and AbhiPrasad and removed request for a team January 4, 2023 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extremely long delays when reporting errors with a long message
3 participants