Added symbol `__UPX_CHECKER' for memory checkers.

committer: mfx <mfx> 974112181 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2000-11-13 10:43:01 +00:00
parent 7f3f4dad7d
commit 828526a001
2 changed files with 36 additions and 30 deletions
+2 -2
View File
@@ -147,7 +147,7 @@ int upx_compress ( const upx_byte *src, upx_uint src_len,
if (method == M_NRV2B_LE32)
{
upx_byte wrkmem[NRV2B_1_16_MEM_COMPRESS];
#if defined(__CHECKER__) || defined(__PURIFY__)
#if defined(__UPX_CHECKER)
memset(wrkmem,0,NRV2B_1_16_MEM_COMPRESS);
#endif
r = nrv2b_1_16_compress(src, src_len, dst, dst_len, wrkmem);
@@ -155,7 +155,7 @@ int upx_compress ( const upx_byte *src, upx_uint src_len,
else if (method == M_NRV2D_LE32)
{
upx_byte wrkmem[NRV2D_1_16_MEM_COMPRESS];
#if defined(__CHECKER__) || defined(__PURIFY__)
#if defined(__UPX_CHECKER)
memset(wrkmem,0,NRV2D_1_16_MEM_COMPRESS);
#endif
r = nrv2d_1_16_compress(src, src_len, dst, dst_len, wrkmem);