diff options
author | Shauren <shauren.trinity@gmail.com> | 2019-11-03 20:02:10 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2019-11-03 20:02:10 +0100 |
commit | e32d888c28e8514c00aa872e4b876184251cfb3b (patch) | |
tree | 9e3fab9c77ac4fbab9cd40adb766a435b4b56a63 /src | |
parent | 9ea577da136f970e327029480cbe9928c18033dc (diff) |
Core/DataStores: Fixed out of bounds memory access in sparse db2 loader
Closes #23900
Diffstat (limited to 'src')
-rw-r--r-- | src/common/DataStores/DB2FileLoader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/DataStores/DB2FileLoader.cpp b/src/common/DataStores/DB2FileLoader.cpp index f5029136c21..041aad12a6a 100644 --- a/src/common/DataStores/DB2FileLoader.cpp +++ b/src/common/DataStores/DB2FileLoader.cpp @@ -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; } |