added NOP for FindOrAddFileName

This commit is contained in:
2026-08-06 23:37:22 +01:00
parent d0d4aaa912
commit d80aa8b59c
+9 -29
View File
@@ -270,38 +270,18 @@ static struct SrcdsPatch
"cstrike/bin/server_srv.so" "cstrike/bin/server_srv.so"
}, },
// 15: I CUtlLinkedList<T,S,ML,I,M>::AllocInternal( bool multilist ) // 15: bool CZipPackFile::Prepare( int64 fileLen, int64 nFileOfs )
//skip CUtlLinkedList overflow! (exhausted memory allocator) and CUtlLinkedList overflow! (exhausted index range) //NOPs out lookup.m_hFileName = m_fs->FindOrAddFileName( tmpString ); Line 768
//this avoids crashing when loading over 64k strings into stringpool. Custom assets in maps lead towards the limit. jenz- December 2023 //stop the errors CUtlLinkedList overflow! (exhausted memory allocator) and CUtlLinkedList overflow! (exhausted index range)
// \x90 prevent green, //this avoids crashing due to loading over 65k strings into stringpool. Custom assets in maps lead towards the limit. jenz- December 2023
// \xEB prevent red
/*
{
"_ZN14CUtlLinkedListI16CUtlKeyValuePairI19CUtlConstStringBaseIcE7empty_tEtLb0Et10CUtlMemoryI19UtlLinkedListElem_tIS4_tEtEE13AllocInternalEb",
(unsigned char *)"\x74\x0C",
"xx",
(unsigned char *)"\x90\x90",
"bin/dedicated_srv.so"
},
{ {
"_ZN12CZipPackFile7PrepareExx", "_ZN12CZipPackFile7PrepareExx",
(unsigned char *)"\x0F\x85\x32\x03\x00\x00", (unsigned char *)"\x8B\x10\x57\x50\xFF\x92\x8C\x00\x00\x00",
"_ZN14CUtlLinkedListI16CUtlKeyValuePairI19CUtlConstStringBaseIcE7empty_tEtLb0Et10CUtlMemoryI19UtlLinkedListElem_tIS4_tEtEE13AllocInternalEb", "xxxxxxxxxx",
(unsigned char *)"\x0F\x87\x7A\xFF\xFF\xFF", (unsigned char *)"\x8B\x10\x57\x50\x31\xC0\x90\x90\x90\x90",
"xxxxxx", "bin/dedicated_srv.so",
(unsigned char *)"\xEB\x85\x32\x03\x00\x00" , 0x600
(unsigned char *)"\xEB\x87\x7A\xFF\xFF\xFF",
"bin/dedicated_srv.so"
}, },
{
"_ZN14CUtlLinkedListI16CUtlKeyValuePairI19CUtlConstStringBaseIcE7empty_tEtLb0Et10CUtlMemoryI19UtlLinkedListElem_tIS4_tEtEE13AllocInternalEb",
(unsigned char *)"\x0F\x84\x9C\x00\x00\x00",
"xxxxxx",
(unsigned char *)"\x90\x90\x90\x90\x90\x90",
"bin/dedicated_srv.so"
},
*/
// 16: Remove weird filename handle check in CZipPackFile::GetFileInfo that broke loading mixed case files in bsp pakfiles // 16: Remove weird filename handle check in CZipPackFile::GetFileInfo that broke loading mixed case files in bsp pakfiles
{ {
"_ZN12CZipPackFile11GetFileInfoEPKcRiRxS2_S2_Rt", "_ZN12CZipPackFile11GetFileInfoEPKcRiRxS2_S2_Rt",