upx_lzma_test_overlap() heuristic overlap_overhead up to 0xA00
This commit is contained in:
parent
76950d56b9
commit
7f01b3b92a
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user