Bump regex from 1.7.1 to 1.8.4
Bumps regex from 1.7.1 to 1.8.4.
Changelog
Sourced from regex's changelog.
1.8.4 (2023-06-05)
This is a patch release that fixes a bug where
(?-u:\B)was allowed in Unicode regexes, despite the fact that the current matching engines can report match offsets between the code units of a single UTF-8 encoded codepoint. That in turn means that match offsets that split a codepoint could be reported, which in turn results in panicking when one uses them to slice a&str.This bug occurred in the transition to
regex 1.8because the underlying syntactical error that prevented this regex from compiling was intentionally removed. That's because(?-u:\B)will be permitted in Unicode regexes inregex 1.9, but the matching engines will guarantee to never report match offsets that split a codepoint. When the underlying syntactical error was removed, no code was added to ensure that(?-u:\B)didn't compile in theregex 1.8transition release. This release,regex 1.8.4, adds that code such thatRegex::new(r"(?-u:\B)")returns to theregex <1.8behavior of not compiling. (Abytes::Regexcan still of course compile it.)Bug fixes:
- [BUG #1006](rust-lang/regex#1006): Fix a bug where
(?-u:\B)was allowed in Unicode regexes, and in turn could lead to match offsets that split a codepoint in&str.1.8.3 (2023-05-25)
This is a patch release that fixes a bug where the regex would report a match at every position even when it shouldn't. This could occur in a very small subset of regexes, usually an alternation of simple literals that have particular properties. (See the issue linked below for a more precise description.)
Bug fixes:
- [BUG #999](rust-lang/regex#999): Fix a bug where a match at every position is erroneously reported.
1.8.2 (2023-05-22)
This is a patch release that fixes a bug where regex compilation could panic in debug mode for regexes with large counted repetitions. For example,
a{2147483516}{2147483416}{5}resulted in an integer overflow that wrapped in release mode but panicking in debug mode. Despite the unintended wrapping arithmetic in release mode, it didn't cause any other logical bugs since the errant code was for new analysis that wasn't used yet.Bug fixes:
... (truncated)
Commits
5a34a391.8.4407f6d3changelog: 1.8.4b2ca9c1compile: make Regex::new(r"(?-u:\B)") fail againa1a9ebe1.8.3710222dchangelog: 1.8.340d883dbug: fix complete literal optimization issued555d61fuzz: don't run on big haystacks8afffabfuzz: OSS-fuzz build scripts into this repo6fb18101.8.2709248cdeps: bump regex-syntax to 0.7.2- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)