mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
check processor type in PackW32Pe::canUnpack
This commit is contained in:
parent
6c6069e963
commit
f6f35415d1
|
@ -1105,7 +1105,7 @@ void PackW32Pe::pack(OutputFile *fo)
|
|||
|
||||
int PackW32Pe::canUnpack()
|
||||
{
|
||||
if (!readFileHeader())
|
||||
if (!readFileHeader() || ih.cpu < 0x14c || ih.cpu > 0x150)
|
||||
return false;
|
||||
|
||||
unsigned objs = ih.objects;
|
||||
|
|
Loading…
Reference in New Issue
Block a user