8000 fix: do not use `\v` in character classes by theseion · Pull Request #137 · coreruleset/crs-toolchain · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: do not use \v in character classes #137

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

Merged
merged 2 commits into from
Mar 18, 2024
Merged

Conversation

theseion
Copy link
Collaborator

\v expands to multiple code points and is, therefore, illegal in PCRE2 when it starts a range. In PCRE, the range token (-) following any such escape code would simply be treated as a literal (depending on compile time configuration).

`\v` expands to multiple code points and is, therefore, illegal in PCRE2
when it starts a range. In PCRE, the range token (`-`) following any
such escape code would simply be treated as a literal (depending on
compile time configuration).
@theseion
Copy link
Collaborator Author

Note that this commit branches of v2.0.0 and will need to be released as v2.1.0.

@theseion theseion requested review from fzipi and airween March 17, 2024 20:19
Copy link
Member
@fzipi fzipi left a comment

Choose a reason for hiding this comment

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

LGTM, nice explanation.

@fzipi
Copy link
Member
fzipi commented Mar 18, 2024

@theseion is this still a draft?

@theseion theseion marked this pull request as ready for review March 18, 2024 19:07
@theseion theseion merged commit dc91d83 into main Mar 18, 2024
@theseion theseion deleted the fix-pcre-invalid-ranges branch March 18, 2024 19:08
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.

2 participants
0