Fix out-of-bounds vector write on copy hex string
This commit is contained in:
parent
7cf69128ea
commit
01eeb53af0
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user