1
0
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:
László Molnár 2008-12-20 14:48:13 +01:00
parent 6c6069e963
commit f6f35415d1

View File

@ -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;