Skip to content

Conversation

@falsyvalues
Copy link
Member

This PR address perf of end trimming based on /\s+$/ regex on large strings (~ 50kB).

bnjmnt4n pushed a commit that referenced this pull request Feb 20, 2021
…t strings

This prevents potential ReDoS attacks using `_.toNumber` and `_.trim*`
as potential attack vectors.

Closes #5065.
@bnjmnt4n
Copy link
Contributor

I've added a few tests, and merged in c4847eb.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

issue bankruptcy Closing the issue/PR to start fresh

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants