1
0
mirror of synced 2024-11-12 02:00:52 +01:00

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

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);