1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

Round down unfilter length to a multiple of 4.

https://sourceforge.net/p/upx/bugs/223
This commit is contained in:
John Reiser 2013-11-16 14:28:59 -08:00
parent c5c9921b59
commit 4f0bfeab4c

View File

@ -176,8 +176,8 @@ f_unfilter: // (char *ptr, uint len, uint cto, uint fid)
#ifndef FILTER_ID /*{*/
#define FILTER_ID 0x50 /* little-endian */
#endif /*}*/
lsl fid,fid,#24; tst len,len; beq unf_done
lsr fid,fid,#24; tst ptr,ptr; beq unf_done
lsl fid,fid,#24; lsr len,len,#2
lsr fid,fid,#24; lsl len,len,#2
cmp fid,#FILTER_ID; bne unf_done // last use of fid
b tst_unf
top_unf: