Rémi Bernon : ntdll: Make sure unix_name is zero terminated (valgrind).
Module: wine Branch: master Commit: b3f6f21d01b281cb928538237eea5c39ec7c0b08 URL: https://source.winehq.org/git/wine.git/?a=commit;h=b3f6f21d01b281cb928538237... Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Thu Apr 22 08:21:11 2021 +0200 ntdll: Make sure unix_name is zero terminated (valgrind). In nt_to_unix_file_name_no_root. Signed-off-by: Rémi Bernon <rbernon(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/ntdll/unix/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c index 488f7485ad8..e32de57190b 100644 --- a/dlls/ntdll/unix/file.c +++ b/dlls/ntdll/unix/file.c @@ -3290,6 +3290,7 @@ static NTSTATUS nt_to_unix_file_name_no_root( const UNICODE_STRING *nameW, char if (prefix_len == name_len) /* no subdir, plain DOS device */ { + unix_name[pos + ret] = 0; *unix_name_ret = unix_name; return get_dos_device( unix_name_ret, pos ); }
participants (1)
-
Alexandre Julliard