summaryrefslogtreecommitdiff
path: root/spec/ruby/library/stringscanner/peep_spec.rb
diff options
context:
space:
mode:
authorJeremy Evans <[email protected]>2025-05-03 11:07:22 -0700
committerJeremy Evans <[email protected]>2025-05-04 04:10:57 +0900
commitbe665cf855d7b35ce166ea1137d4f8d0cac1010b (patch)
tree9da637d7922023c383b3edff23f6c6852a269456 /spec/ruby/library/stringscanner/peep_spec.rb
parentf3246ccebb0ccb8667fc6f143e69ecc2a9e3fb3c (diff)
Handle mutation of array being merged into set
Check length of array during every iteration, as a #hash method could truncate the array, resulting in heap-use-after-free. Fixes [Bug #21305]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13253
Diffstat (limited to 'spec/ruby/library/stringscanner/peep_spec.rb')
0 files changed, 0 insertions, 0 deletions