StevenBlack / hosts

🔒 Consolidating and extending hosts files from several well-curated sources. Optionally pick extensions for porn, social media, and other categories.
MIT License
25.5k stars 2.13k forks source link

## Inefficient regular expression #2634

Closed namka279 closed 1 week ago

namka279 commented 1 week ago

Inefficient regular expression

This part of the regular expression may cause exponential backtracking on strings containing many repetitions of '..'.

Show more details

_Originally posted by @github-advanced-security in https://github.com/StevenBlack/hosts/pull/2400#discussion_r1290244171_

welcome[bot] commented 1 week ago

Hello! Thank you for opening your first issue in this repo. It’s people like you who make these host files better!

funilrys commented 1 week ago

I can look into this, but please give us a working link and example that we can integrate into our tests.

Otherwise, I recommend closing this issue.

funilrys commented 1 week ago

Okay, I found the reference: https://github.com/StevenBlack/hosts/pull/2400#discussion_r1572687558

@StevenBlack, please close as per https://github.com/StevenBlack/hosts/pull/2400#discussion_r1573227094 .

Thank you for your time @namka279.