1
0
mirror of synced 2025-01-30 19:43:43 +01:00

fix: Uninitialized buffers in resize operation

This commit is contained in:
WerWolv 2025-01-29 18:39:19 +01:00
parent aee7a09b6c
commit e981eff1e6

View File

@ -107,8 +107,8 @@ namespace hex::prv {
auto newSize = oldSize + size; auto newSize = oldSize + size;
this->resizeRaw(newSize); this->resizeRaw(newSize);
std::vector<u8> buffer(0x1000); std::vector<u8> buffer(0x1000, 0x00);
const std::vector<u8> zeroBuffer(0x1000); const std::vector<u8> zeroBuffer(0x1000, 0x00);
auto position = oldSize; auto position = oldSize;
while (position > offset) { while (position > offset) {