ruby/ext/win32
NARUSE, Yui ade02f3c89 merge revision(s) 051a874325: [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(-)
2024-03-04 11:57:04 +09:00
..
lib/win32 merge revision(s) 051a874325: [Backport #20096] 2024-03-04 11:57:04 +09:00
resolv Expand tabs [ci skip] 2022-07-21 09:42:04 -07:00
depend
extconf.rb