fix: Uninitialized buffers in resize operation
This commit is contained in:
parent
aee7a09b6c
commit
e981eff1e6
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user