Qian Hong : kernel32: Fix GetComputerName buffer overflow.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jul 22 13:40:36 CDT 2015
Module: wine
Branch: master
Commit: 34c7a72d145b822492e903b9766291aa1b19e947
URL: http://source.winehq.org/git/wine.git/?a=commit;h=34c7a72d145b822492e903b9766291aa1b19e947
Author: Qian Hong <qhong at codeweavers.com>
Date: Wed Jul 22 10:28:06 2015 +0800
kernel32: Fix GetComputerName buffer overflow.
---
dlls/kernel32/process.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 1cd6e47..b0c06e3 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -517,7 +517,7 @@ static void set_additional_environment(void)
OBJECT_ATTRIBUTES attr;
UNICODE_STRING nameW;
WCHAR *profile_dir = NULL, *all_users_dir = NULL;
- WCHAR buf[MAX_COMPUTERNAME_LENGTH];
+ WCHAR buf[MAX_COMPUTERNAME_LENGTH+1];
HANDLE hkey;
DWORD len;
More information about the wine-cvs
mailing list