mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
watcom/le: initialize memory when aligning.
This commit is contained in:
parent
c95088f8d5
commit
8c873ccdc8
|
@ -209,6 +209,8 @@ void MemBuffer::alloc(unsigned size)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
b = p ;
|
b = p ;
|
||||||
|
|
||||||
|
//fill(0, b_size, (rand() & 0xff) | 1); // debug
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -450,7 +450,9 @@ void PackWcle::encodeImage(const Filter *ft)
|
||||||
buildLoader(ft);
|
buildLoader(ft);
|
||||||
|
|
||||||
ibuf.dealloc();
|
ibuf.dealloc();
|
||||||
soimage = (ph.c_len + 3) &~ 3;
|
soimage = ph.c_len;
|
||||||
|
while (soimage & 3)
|
||||||
|
oimage[RESERVED + soimage++] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user