mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/DataStores: Fixed out of bounds memory access in sparse db2 loader
Closes #23900
This commit is contained in:
@@ -1023,7 +1023,7 @@ bool DB2FileLoaderSparseImpl::LoadCatalogData(DB2FileSource* source, uint32 sect
|
||||
{
|
||||
std::size_t oldCopyTableSize = _copyTable.size();
|
||||
_copyTable.resize(oldCopyTableSize + _sections[section].CopyTableCount);
|
||||
if (!source->Read(&_copyTable[oldSize], sizeof(DB2RecordCopy) * _sections[section].CopyTableCount))
|
||||
if (!source->Read(&_copyTable[oldCopyTableSize], sizeof(DB2RecordCopy) * _sections[section].CopyTableCount))
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user