Guild icon
Teeworlds
discord.gg/teeworlds / development
For discussions around the development of the official Teeworlds
Between 2019-04-05 00:00:00Z and 2019-04-06 00:00:00Z
Avatar
Hello Teeworlds dev team, There is no bounds check on Index in CDataFileReader::GetItem() leading to OOB access in CMap::Load(). ```C++ void *CDataFileReader::GetItem(int Index, int *pType, int *pID) { if(!m_pDataFile) { if(pType) *pType = 0; if(pID) *pID = 0; return 0; } CDatafileItem *i = (CDatafileItem *)(m_pDataFile->m_Info.m_pItemStart+m_pDataFile->m_Info.m_pItemOffsets[Index]); if(pType) *pType = (i->m_TypeAndID>>16)&0xffff; // remove sign extention if(pID) *pID ...
21:45
366d3de Add space. - regseb cc34154 Merge pull request #74 from regseb/patch-1 - Dune-jr
Exported 5 message(s)