Return null if inflated data isn't an MZ file

This commit is contained in:
de4dot 2011-11-30 19:10:56 +01:00
parent 8637ef5e1a
commit 68d962fb6e

View File

@ -58,6 +58,9 @@ namespace de4dot.deobfuscators.dotNET_Reactor {
if (count != inflatedSize)
return null;
if (BitConverter.ToInt16(inflatedData, 0) != 0x5A4D)
return null;
return inflatedData;
}