Fix out-of-bounds vector write on copy hex string

This commit is contained in:
misson20000 2020-11-22 18:00:46 -08:00
parent 7cf69128ea
commit 01eeb53af0
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ namespace hex {
size_t copySize = (end - start) + 1;
std::string buffer;
std::string buffer(copySize, 0x00);
buffer.reserve(copySize + 1);
this->m_dataProvider->read(start, buffer.data(), copySize);