summaryrefslogtreecommitdiff
path: root/ext/ripper/tools/generate.rb
diff options
context:
space:
mode:
authorKJ Tsanaktsidis <kj@kjtsanaktsidis.id.au>2023-12-28 17:07:45 +1100
committerKJ Tsanaktsidis <kj@kjtsanaktsidis.id.au>2023-12-28 18:03:58 +1100
commit051a874325c177e040301878069c2b28f5d06ce6 (patch)
treeb04105e509746c4869734d8f9e04c40b65e2e030 /ext/ripper/tools/generate.rb
parent67026af146d8298a4acb0514a5dc395d39275ab3 (diff)
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 'ext/ripper/tools/generate.rb')
0 files changed, 0 insertions, 0 deletions