[PR #45] [MERGED] build(deps): bump regex from 1.7.2 to 1.8.4 #605

Closed
opened 2026-05-22 23:58:45 +01:00 by JakeStanger · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/JakeStanger/mpd-discord-rpc/pull/45
Author: @dependabot[bot]
Created: 6/10/2023
Status: Merged
Merged: 6/10/2023
Merged by: @JakeStanger

Base: masterHead: dependabot/cargo/regex-1.8.4


📝 Commits (1)

  • ffa913e build(deps): bump regex from 1.7.2 to 1.8.4

📊 Changes

2 files changed (+7 additions, -7 deletions)

View changed files

📝 Cargo.lock (+6 -6)
📝 Cargo.toml (+1 -1)

📄 Description

Bumps regex from 1.7.2 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.8 because the underlying syntactical error that prevented this regex from compiling was intentionally removed. That's because (?-u:\B) will be permitted in Unicode regexes in regex 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 the regex 1.8 transition release. This release, regex 1.8.4, adds that code such that Regex::new(r"(?-u:\B)") returns to the regex <1.8 behavior of not compiling. (A bytes::Regex can 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:

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

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/JakeStanger/mpd-discord-rpc/pull/45 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 6/10/2023 **Status:** ✅ Merged **Merged:** 6/10/2023 **Merged by:** [@JakeStanger](https://github.com/JakeStanger) **Base:** `master` ← **Head:** `dependabot/cargo/regex-1.8.4` --- ### 📝 Commits (1) - [`ffa913e`](https://github.com/JakeStanger/mpd-discord-rpc/commit/ffa913e2c41f98dd4edf93d305ad124ce9bcd915) build(deps): bump regex from 1.7.2 to 1.8.4 ### 📊 Changes **2 files changed** (+7 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+6 -6) 📝 `Cargo.toml` (+1 -1) </details> ### 📄 Description Bumps [regex](https://github.com/rust-lang/regex) from 1.7.2 to 1.8.4. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/rust-lang/regex/blob/master/CHANGELOG.md">regex's changelog</a>.</em></p> <blockquote> <h1>1.8.4 (2023-06-05)</h1> <p>This is a patch release that fixes a bug where <code>(?-u:\B)</code> 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 <code>&amp;str</code>.</p> <p>This bug occurred in the transition to <code>regex 1.8</code> because the underlying syntactical error that prevented this regex from compiling was intentionally removed. That's because <code>(?-u:\B)</code> will be permitted in Unicode regexes in <code>regex 1.9</code>, 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 <code>(?-u:\B)</code> didn't compile in the <code>regex 1.8</code> transition release. This release, <code>regex 1.8.4</code>, adds that code such that <code>Regex::new(r&quot;(?-u:\B)&quot;)</code> returns to the <code>regex &lt;1.8</code> behavior of not compiling. (A <code>bytes::Regex</code> can still of course compile it.)</p> <p>Bug fixes:</p> <ul> <li>[BUG <a href="https://redirect.github.com/rust-lang/regex/issues/1006">#1006</a>](<a href="https://redirect.github.com/rust-lang/regex/issues/1006">rust-lang/regex#1006</a>): Fix a bug where <code>(?-u:\B)</code> was allowed in Unicode regexes, and in turn could lead to match offsets that split a codepoint in <code>&amp;str</code>.</li> </ul> <h1>1.8.3 (2023-05-25)</h1> <p>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.)</p> <p>Bug fixes:</p> <ul> <li>[BUG <a href="https://redirect.github.com/rust-lang/regex/issues/999">#999</a>](<a href="https://redirect.github.com/rust-lang/regex/issues/999">rust-lang/regex#999</a>): Fix a bug where a match at every position is erroneously reported.</li> </ul> <h1>1.8.2 (2023-05-22)</h1> <p>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, <code>a{2147483516}{2147483416}{5}</code> 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.</p> <p>Bug fixes:</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/rust-lang/regex/commit/5a34a39b72d85730065d3ffe4ce3715f2731e49a"><code>5a34a39</code></a> 1.8.4</li> <li><a href="https://github.com/rust-lang/regex/commit/407f6d3254525823a0981e00f5922940c28818ab"><code>407f6d3</code></a> changelog: 1.8.4</li> <li><a href="https://github.com/rust-lang/regex/commit/b2ca9c16dab559697ef152913a75479d7382efc1"><code>b2ca9c1</code></a> compile: make Regex::new(r&quot;(?-u:\B)&quot;) fail again</li> <li><a href="https://github.com/rust-lang/regex/commit/a1a9ebe707fba85ff8e674ac6812a3aae14334f8"><code>a1a9ebe</code></a> 1.8.3</li> <li><a href="https://github.com/rust-lang/regex/commit/710222d717ed09fc09cf2f350815bec4752373e3"><code>710222d</code></a> changelog: 1.8.3</li> <li><a href="https://github.com/rust-lang/regex/commit/40d883d405ba3e992d84367a6e9ede4053125ab3"><code>40d883d</code></a> bug: fix complete literal optimization issue</li> <li><a href="https://github.com/rust-lang/regex/commit/d555d6122d1d1a354c45361d029571413beca8ef"><code>d555d61</code></a> fuzz: don't run on big haystacks</li> <li><a href="https://github.com/rust-lang/regex/commit/8afffabb86caacb7ba8646530cf366e5921556e4"><code>8afffab</code></a> fuzz: OSS-fuzz build scripts into this repo</li> <li><a href="https://github.com/rust-lang/regex/commit/6fb18108278e4a0b3f048ae9bf7aa3d712b16b4c"><code>6fb1810</code></a> 1.8.2</li> <li><a href="https://github.com/rust-lang/regex/commit/709248c4f8d34264157d45db8c34bd008021de44"><code>709248c</code></a> deps: bump regex-syntax to 0.7.2</li> <li>Additional commits viewable in <a href="https://github.com/rust-lang/regex/compare/1.7.2...1.8.4">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=regex&package-manager=cargo&previous-version=1.7.2&new-version=1.8.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
JakeStanger 2026-05-22 23:58:45 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/mpd-discord-rpc#605
No description provided.