修复bug

This commit is contained in:
Perfare 2022-06-10 02:57:44 +08:00
parent 8f06aa425a
commit 2fe04c6e41

View file

@ -220,7 +220,8 @@ namespace Il2CppDumper
foreach (var section in data)
{
il2Cpp.Position = section.offset;
while (il2Cpp.Position < section.offsetEnd - il2Cpp.PointerSize)
var end = Math.Min(section.offsetEnd, il2Cpp.Length) - il2Cpp.PointerSize;
while (il2Cpp.Position < end)
{
var addr = il2Cpp.Position;
if (il2Cpp.ReadIntPtr() == typeDefinitionsCount)