msvcrt: Fix read beyond end of string in __unDNameEx().
This commit is contained in:
parent
fee66fb15a
commit
ef9038c761
|
@ -1233,8 +1233,7 @@ char* __unDNameEx(char* buffer, const char* mangled, int buflen,
|
|||
result = symbol_demangle(&sym) ? sym.result : mangled;
|
||||
if (buffer && buflen)
|
||||
{
|
||||
memcpy(buffer, result, buflen - 1);
|
||||
buffer[buflen - 1] = '\0';
|
||||
lstrcpynA( buffer, result, buflen);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue