aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2019-11-03 20:02:10 +0100
committerShauren <shauren.trinity@gmail.com>2019-11-03 20:02:10 +0100
commite32d888c28e8514c00aa872e4b876184251cfb3b (patch)
tree9e3fab9c77ac4fbab9cd40adb766a435b4b56a63
parent9ea577da136f970e327029480cbe9928c18033dc (diff)
Core/DataStores: Fixed out of bounds memory access in sparse db2 loader
Closes #23900
-rw-r--r--src/common/DataStores/DB2FileLoader.cpp2
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;
}