Rémi Bernon : ntdll: Make sure unix_name is zero terminated (valgrind).
Alexandre Julliard
julliard at winehq.org
Thu Apr 22 15:55:24 CDT 2021
Module: wine
Branch: master
Commit: b3f6f21d01b281cb928538237eea5c39ec7c0b08
URL: https://source.winehq.org/git/wine.git/?a=commit;h=b3f6f21d01b281cb928538237eea5c39ec7c0b08
Author: Rémi Bernon <rbernon at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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 );
}
More information about the wine-cvs
mailing list