summaryrefslogtreecommitdiff
path: root/spec/ruby/core/basicobject/method_missing_spec.rb
diff options
context:
space:
mode:
authornagachika <nagachika@ruby-lang.org>2024-01-18 11:53:29 +0900
committernagachika <nagachika@ruby-lang.org>2024-01-18 11:53:29 +0900
commit5dae6eb55e9785c8329708e55a49a280a344cdc1 (patch)
treefd271fc47dccb4c36c5577812bdaaac9c95c6c87 /spec/ruby/core/basicobject/method_missing_spec.rb
parenta26b41bf7a2db69b0889ed599f568a4ba2529eba (diff)
merge revision(s) 051a874325c177e040301878069c2b28f5d06ce6: [Backport #20096]
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] --- ext/win32/lib/win32/registry.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
Diffstat (limited to 'spec/ruby/core/basicobject/method_missing_spec.rb')
0 files changed, 0 insertions, 0 deletions