Added symbol `__UPX_CHECKER' for memory checkers.
committer: mfx <mfx> 974112181 +0000
This commit is contained in:
+2
-2
@@ -147,7 +147,7 @@ int upx_compress ( const upx_byte *src, upx_uint src_len,
|
|||||||
if (method == M_NRV2B_LE32)
|
if (method == M_NRV2B_LE32)
|
||||||
{
|
{
|
||||||
upx_byte wrkmem[NRV2B_1_16_MEM_COMPRESS];
|
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);
|
memset(wrkmem,0,NRV2B_1_16_MEM_COMPRESS);
|
||||||
#endif
|
#endif
|
||||||
r = nrv2b_1_16_compress(src, src_len, dst, dst_len, wrkmem);
|
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)
|
else if (method == M_NRV2D_LE32)
|
||||||
{
|
{
|
||||||
upx_byte wrkmem[NRV2D_1_16_MEM_COMPRESS];
|
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);
|
memset(wrkmem,0,NRV2D_1_16_MEM_COMPRESS);
|
||||||
#endif
|
#endif
|
||||||
r = nrv2d_1_16_compress(src, src_len, dst, dst_len, wrkmem);
|
r = nrv2d_1_16_compress(src, src_len, dst, dst_len, wrkmem);
|
||||||
|
|||||||
+8
-2
@@ -95,8 +95,10 @@
|
|||||||
# define __UPX_ENTRY __NRV_ENTRY
|
# define __UPX_ENTRY __NRV_ENTRY
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#ifndef WITH_ZLIB
|
#if !defined(__UPX_CHECKER)
|
||||||
# define WITH_ZLIB 1
|
# if defined(__UCL_CHECKER) || defined(__NRV_CHECKER)
|
||||||
|
# define __UPX_CHECKER
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#if !defined(UPX_UINT_MAX) || (UINT_MAX < 0xffffffffL)
|
#if !defined(UPX_UINT_MAX) || (UINT_MAX < 0xffffffffL)
|
||||||
# error "you lose"
|
# error "you lose"
|
||||||
@@ -108,6 +110,10 @@
|
|||||||
# error "please upgrade your UCL installation"
|
# error "please upgrade your UCL installation"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef WITH_ZLIB
|
||||||
|
# define WITH_ZLIB 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
// system includes
|
// system includes
|
||||||
|
|||||||
Reference in New Issue
Block a user