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
Lazy matchStrings regex can cause out of memory crash #22083
Labels
priority-2-high
Bugs impacting wide number of users or very important features
status:in-progress
Someone is working on implementation
type:bug
Bug fix of existing functionality
Comments
rarkins
added
type:bug
Bug fix of existing functionality
priority-2-high
Bugs impacting wide number of users or very important features
status:ready
labels
May 11, 2023
I saw it. maybe an RE2 bug? |
This reproduces in the regex manager dir:
Notice how it's a global match and we match all |
rarkins
added a commit
that referenced
this issue
May 11, 2023
6 tasks
rarkins
added
status:in-progress
Someone is working on implementation
and removed
status:ready
labels
May 11, 2023
Fix: #22084 |
It's a RE2 issue const r = require('re2');
// works: 41 same matches
[...'1f699d2bfc99bbbe4c1ed5bb8fc21e6911d69c6e\n'.matchAll(/(?<currentDigest>.*?)/g)]
// craches with oom
[...'1f699d2bfc99bbbe4c1ed5bb8fc21e6911d69c6e\n'.matchAll(new r(/(?<currentDigest>.*?)/g))] |
🎉 This issue has been resolved in version 35.79.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
priority-2-high
Bugs impacting wide number of users or very important features
status:in-progress
Someone is working on implementation
type:bug
Bug fix of existing functionality
How are you running Renovate?
Self-hosted Renovate
If you're self-hosting Renovate, tell us what version of Renovate you run.
source
If you're self-hosting Renovate, select which platform you are using.
github.com
Was this something which used to work for you, and then stopped?
I am trying to get this working for the first time
Describe the bug
This causes the problem: https://github.com/rarkins/sha_renovate/blob/505a1639c36daa398e09937f72432939d2740e0d/renovate.json#L9
Replacing it with
"^(?<currentDigest>.*?)(\n|$)"
worksRelevant debug logs
Logs
Have you created a minimal reproduction repository?
I have linked to a minimal reproduction in the description above
The text was updated successfully, but these errors were encountered: