mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
Fix out-of-bounds vector write on copy hex string
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user