mirror of
https://github.com/reactos/wine.git
synced 2025-02-18 03:48:01 +00:00
advpack: Fix buffer overrun in convert_file_list.
This commit is contained in:
parent
9b5d3677df
commit
3055239f69
@ -564,9 +564,7 @@ static LPSTR convert_file_list(LPCSTR FileList, DWORD *dwNumFiles)
|
||||
dwLen = last - first + 3; /* room for double-null termination */
|
||||
szConvertedList = HeapAlloc(GetProcessHeap(), 0, dwLen);
|
||||
lstrcpynA(szConvertedList, first, dwLen - 1);
|
||||
|
||||
szConvertedList[dwLen - 1] = '\0';
|
||||
szConvertedList[dwLen] = '\0';
|
||||
|
||||
/* empty list */
|
||||
if (!lstrlenA(szConvertedList))
|
||||
|
Loading…
x
Reference in New Issue
Block a user