[PATCH] ntdll: Make sure unix_name is zero terminated (valgrind).
22 Apr
2021
22 Apr
'21
6:21 a.m.
In nt_to_unix_file_name_no_root. Signed-off-by: Rémi Bernon <rbernon(a)codeweavers.com> --- 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 a8078356fc6..8ac3d3d07ce 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 free( unix_name ); return STATUS_OBJECT_NAME_INVALID; } + unix_name[pos + ret] = 0; if (prefix_len == name_len) /* no subdir, plain DOS device */ { -- 2.31.0
1703
Age (days ago)
1703
Last active (days ago)
0 comments
1 participants
participants (1)
-
Rémi Bernon