Fix polynomial regexes by lildude · Pull Request #7268 · github-linguist/linguist · GitHub
Skip to content

Fix polynomial regexes - #7268

Merged
lildude merged 1 commit into
mainfrom
lildude/fix-polynomial-generated-regexes
Mar 10, 2025
Merged

lildude merged 1 commit into
mainfrom
lildude/fix-polynomial-generated-regexes

Conversation

@lildude

@lildude lildude commented Mar 6, 2025

Copy link
Copy Markdown
Member

Description

Fixes the two regular expressions identified as vulnerable to ReDoS by code scanning in https://github.com/github-linguist/linguist/security/code-scanning/13 and https://github.com/github-linguist/linguist/security/code-scanning/1

Checklist:

N/A

@lildude
lildude requested a review from a team as a code owner March 6, 2025 11:59
Comment thread lib/linguist/generated.rb

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

SQLx uses SHA256 hashes and hex::encode which always returns lowercase letters.

@lildude
lildude merged commit 66d3061 into main Mar 10, 2025
@lildude
lildude deleted the lildude/fix-polynomial-generated-regexes branch March 10, 2025 18:00
@github-linguist github-linguist locked as resolved and limited conversation to collaborators Jul 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant