Update RpcView.cpp

Handle OS_ALLOC heap allocation potential failure in InitDecompilerInfo
This commit is contained in:
hfiref0x
2019-01-16 14:03:21 +07:00
parent 79ea228d3e
commit 270401c658
+3 -1
View File
@@ -189,7 +189,9 @@ void NTAPI InitDecompilerInfo(_In_ RpcInterfaceInfo_T* pRpcInterfaceInfo, _Out_
{
SymboleLength = ((UINT)wcslen(SymboleName) + 1)*sizeof(WCHAR);
pRpcDecompilerInfo->ppProcNameTable[i] = (WCHAR*)OS_ALLOC(SymboleLength);
memcpy(pRpcDecompilerInfo->ppProcNameTable[i], SymboleName, SymboleLength);
if (pRpcDecompilerInfo->ppProcNameTable[i] != NULL) {
memcpy(pRpcDecompilerInfo->ppProcNameTable[i], SymboleName, SymboleLength);
}
}
}
PdbUninit(hPdb);