1
0
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:
Markus F.X.J. Oberhumer 2006-11-18 21:59:59 +01:00
parent c95088f8d5
commit 8c873ccdc8
2 changed files with 5 additions and 1 deletions

View File

@ -209,6 +209,8 @@ void MemBuffer::alloc(unsigned size)
}
else
b = p ;
//fill(0, b_size, (rand() & 0xff) | 1); // debug
}

View File

@ -450,7 +450,9 @@ void PackWcle::encodeImage(const Filter *ft)
buildLoader(ft);
ibuf.dealloc();
soimage = (ph.c_len + 3) &~ 3;
soimage = ph.c_len;
while (soimage & 3)
oimage[RESERVED + soimage++] = 0;
}