aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_regexp.rb
diff options
context:
space:
mode:
authorAdam Hess <adamhess1991@gmail.com>2023-11-01 00:01:55 -0700
committerPeter Zhu <peter@peterzhu.ca>2023-11-08 08:05:58 -0500
commit05cde4155cd43a79733ab4996db2d8b1f64c4fb5 (patch)
tree72c44dc195827af20ff9b61a69dc62b62bece56f /test/ruby/test_regexp.rb
parentb4bf8c9ee2d716adf5fc08e67c4b26d6a8f929c2 (diff)
downloadruby-05cde4155cd43a79733ab4996db2d8b1f64c4fb5.tar.gz
fix regex from regex memory corruption
before this change, creating a regex from a regex with a named capture, Regexp.new(/(?<name>)/), causes memory to be shared between the two named capture groups which can cause a segfault if the original is GCed.
Diffstat (limited to 'test/ruby/test_regexp.rb')
0 files changed, 0 insertions, 0 deletions