From: Yuxuan Shui yshui@codeweavers.com
Fix out-of-bound access by wcslen. Found by ASan. --- dlls/mscoree/metahost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/mscoree/metahost.c b/dlls/mscoree/metahost.c index e1dd00656e9..1628436ac6f 100644 --- a/dlls/mscoree/metahost.c +++ b/dlls/mscoree/metahost.c @@ -842,7 +842,7 @@ static BOOL get_mono_path_datadir(LPWSTR path) { static const WCHAR winedatadirW[] = {'W','I','N','E','D','A','T','A','D','I','R',0}; static const WCHAR winebuilddirW[] = {'W','I','N','E','B','U','I','L','D','D','I','R',0}; - static const WCHAR unix_prefix[] = {'\','?','?','\','u','n','i','x','\'}; + static const WCHAR unix_prefix[] = {'\','?','?','\','u','n','i','x','\',0}; static const WCHAR monoW[] = {'\','m','o','n','o',0}; static const WCHAR dotdotmonoW[] = {'\','.','.','\','m','o','n','o',0}; const WCHAR *data_dir, *suffix;