Skip to content

build(deps): bump re2 from 2.27.0 to 2.28.0 - #168

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/re2-2.28.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/re2-2.28.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 5, 2026

Copy link
Copy Markdown
Contributor

Bumps re2 from 2.27.0 to 2.28.0.

Release notes

Sourced from re2's releases.

2.28.0: UTF-8, garbage-collectable group names

Changed

  • Capturing group names are now always returned as UTF-8 strings (and symbols), even if the RE2::Regexp sets the utf8 option to false, as RE2 stores them internally as UTF-8.

Fixed

  • Fix a segmentation fault when calling RE2::Set#match after RE2::Set#compile has failed, e.g. if the patterns exceed max_mem. This now raises an RE2::Set::MatchError (or returns an empty array if the exception option is false) as if the set had not been compiled.
  • Fix a use-after-free when re-initializing an RE2::Set while matching against it. RE2::Set objects can no longer be re-initialized.
  • Fix a use-after-free when calling initialize_copy on an RE2::MatchData or RE2::Scanner with itself.
  • Prevent an RE2::Regexp being re-initialized while its options are being parsed, which could replace the pattern of a frozen RE2::Regexp and leak memory.
  • Symbol keys returned by RE2::MatchData#named_captures (with symbolize_names) and RE2::MatchData#deconstruct_keys can now be garbage collected, preventing unbounded memory growth when matching many different patterns. Non-ASCII capturing group names are also now returned as correctly encoded symbols.
  • Always compile the extension with C++17, fixing builds with RubyInstaller 4.0.5-1's ucrt64 toolchain.

SHA256 checksums:

e44820c02705cbb83d70a3e45cd03e72a3d182f7a88d18cb4f34ab432c68e5a9  re2-2.28.0-aarch64-linux-gnu.gem
8898fe5c37ca6e9219ef032bb5bcadf5c28d37368e570c639d885e51ec084097  re2-2.28.0-aarch64-linux-musl.gem
b58e40c5133d24f10384c6c2cc0d1b849308c845c3179478cb9c5cd59332625d  re2-2.28.0-arm-linux-gnu.gem
7e4dfee266483d1adfec7736ddb85b43afd4b8bcb9d61c8d0ca737248539420b  re2-2.28.0-arm-linux-musl.gem
01aa1e09f68eeef110d1d6d5d0f686b3aa6076eeb362decb4d1c2751c4222219  re2-2.28.0-arm64-darwin.gem
a3510c82db0455485447e0b67b00ca0f89a1503f7851967040c93b9d99a40068  re2-2.28.0-x64-mingw-ucrt.gem
33421c6cc09b81e81fccc010469d495b9c85ebb6cca3107d3632093daef80740  re2-2.28.0-x86_64-darwin.gem
fb703048612f2e39a175b96abcd78d3d2cc2032418b0fe0b17cca110897694d6  re2-2.28.0-x86_64-linux-gnu.gem
8869daa213c1a721a38a844bafe283172fd761f879b76b9198739c0cf86557da  re2-2.28.0-x86_64-linux-musl.gem
9d2ff383749a304f607ff2c6d63f84ede2fc6581512c7e12acd50622d392d10d  re2-2.28.0.gem
Changelog

Sourced from re2's changelog.

[2.28.0] - 2026-09-28

Changed

  • Capturing group names are now always returned as UTF-8 strings (and symbols), even if the RE2::Regexp sets the utf8 option to false, as RE2 stores them internally as UTF-8.

Fixed

  • Fix a segmentation fault when calling RE2::Set#match after RE2::Set#compile has failed, e.g. if the patterns exceed max_mem. This now raises an RE2::Set::MatchError (or returns an empty array if the exception option is false) as if the set had not been compiled.
  • Fix a use-after-free when re-initializing an RE2::Set while matching against it. RE2::Set objects can no longer be re-initialized.
  • Fix a use-after-free when calling initialize_copy on an RE2::MatchData or RE2::Scanner with itself.
  • Prevent an RE2::Regexp being re-initialized while its options are being parsed, which could replace the pattern of a frozen RE2::Regexp and leak memory.
  • Symbol keys returned by RE2::MatchData#named_captures (with symbolize_names) and RE2::MatchData#deconstruct_keys can now be garbage collected, preventing unbounded memory growth when matching many different patterns. Non-ASCII capturing group names are also now returned as correctly encoded symbols.
  • Always compile the extension with C++17, fixing builds with RubyInstaller 4.0.5-1's ucrt64 toolchain.
Commits
  • 1d0ac91 Bump version to 2.28.0
  • ca7050b Always return capturing group names as UTF-8
  • 6866e33 Update rake-compiler-dock requirement from ~> 1.11.0 to ~> 1.12.0
  • c7b0fa2 Ensure option parsing can't re-initialize a Regexp
  • 0fe1232 Use garbage-collectable symbols for group names
  • 955fa3a Fix calling match on a set that failed compile
  • 3f51bc3 Harden GitHub Actions workflows
  • c8a900c Always set a C++ standard of C++17
  • 29f851f Bump actions/upload-pages-artifact from 4 to 5
  • 89481f6 Guard against copying into self
  • Additional commits viewable in compare view

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

Bumps [re2](https://github.com/mudge/re2) from 2.27.0 to 2.28.0.
- [Release notes](https://github.com/mudge/re2/releases)
- [Changelog](https://github.com/mudge/re2/blob/main/CHANGELOG.md)
- [Commits](mudge/re2@v2.27.0...v2.28.0)

---
updated-dependencies:
- dependency-name: re2
  dependency-version: 2.28.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file ruby Pull requests that update ruby code labels Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ruby Pull requests that update ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants