From e32d888c28e8514c00aa872e4b876184251cfb3b Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 3 Nov 2019 20:02:10 +0100 Subject: Core/DataStores: Fixed out of bounds memory access in sparse db2 loader Closes #23900 --- src/common/DataStores/DB2FileLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/DataStores/DB2FileLoader.cpp') 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; } -- cgit v1.2.3