summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/element_reference_spec.rb
diff options
context:
space:
mode:
authorKJ Tsanaktsidis <kj@kjtsanaktsidis.id.au>2024-03-15 00:27:35 +0800
committerGitHub <noreply@github.com>2024-03-14 16:27:35 +0000
commitbd42c1725a3bba0f97831aa3dbaa6924f506a5f3 (patch)
tree0b040edf74a6b3b58c8b31c1435e2d4712241a77 /spec/ruby/core/array/element_reference_spec.rb
parent606dd03e9b0d4cf65ef56e52fab063e3ed5ef797 (diff)
Backport #20096 to Ruby 3.3 (#9471)
Fix memory overread in registry.rb The terminator is not actually getting filled in; we're simply passing (two) bytes of empty memory as the NUL terminator. This can lead to garbage characters getting written to registry values. Fix this by explicitly putting a WCHAR_NUL character into the string to be sent to the registry API, like we do in the MULTI_SZ case. [Bug #20096]
Diffstat (limited to 'spec/ruby/core/array/element_reference_spec.rb')
0 files changed, 0 insertions, 0 deletions