Skip to content

Commit e6b1f1f

Browse files
committed
防傻瓜提示
1 parent 6499cf5 commit e6b1f1f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Il2CppDumper/Il2Cpp/Metadata.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ public Metadata(Stream stream) : base(stream)
4848
throw new InvalidDataException("ERROR: Metadata file supplied is not valid metadata file.");
4949
}
5050
var version = ReadInt32();
51+
if (version < 0 || version > 1000)
52+
{
53+
throw new InvalidDataException("ERROR: Metadata file supplied is not valid metadata file.");
54+
}
5155
if (version < 16 || version > 29)
5256
{
5357
throw new NotSupportedException($"ERROR: Metadata file supplied is not a supported version[{version}].");

0 commit comments

Comments
 (0)