diff options
author | Adam Hess <adamhess1991@gmail.com> | 2023-11-01 00:01:55 -0700 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2023-11-08 08:05:58 -0500 |
commit | 05cde4155cd43a79733ab4996db2d8b1f64c4fb5 (patch) | |
tree | 72c44dc195827af20ff9b61a69dc62b62bece56f /test/ruby/test_regexp.rb | |
parent | b4bf8c9ee2d716adf5fc08e67c4b26d6a8f929c2 (diff) | |
download | ruby-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