upx_lzma_test_overlap() heuristic overlap_overhead up to 0xA00

This commit is contained in:
John Reiser 2007-04-25 09:19:29 -07:00
parent 76950d56b9
commit 7f01b3b92a

View File

@ -500,7 +500,10 @@ int upx_lzma_test_overlap ( const upx_bytep buf, unsigned src_off,
unsigned overlap_overhead = src_off + src_len - *dst_len;
//printf("upx_lzma_test_overlap: %d\n", overlap_overhead);
if ((int)overlap_overhead >= 256)
// 2007-04-25 lower bound 0x810 using --lzma on
// http://www.equi4.com/pub/tk/8.4.13/tclkit-linux-x86.gz
if ((int)overlap_overhead >= 0xa00)
return UPX_E_OK;
UNUSED(cresult);