Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/public/dt_utlvector_recv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ void RecvProxy_UtlVectorLength( const CRecvProxyData *pData, void *pStruct, void
// to write arbitrary data to out of bounds memory.
// There isn't much we can do at this point - we're deep in the networking stack, it's hard to recover
// gracefully and we shouldn't be talking to this server anymore.
// So we crash.
//
// So we notify client.
Error("Server send utlvector length value %d which is not in range [%d...%d]. Crashing client to prevent RCE...\n",
pData->m_Value.m_Int, 0, pExtra->m_nMaxElements);
// And crash.
*(int *) 1 = 2;
}
pExtra->m_ResizeFn( pStruct, pExtra->m_Offset, pData->m_Value.m_Int );
Expand Down