修复bug

This commit is contained in:
Perfare 2022-06-10 03:03:54 +08:00
parent 2fe04c6e41
commit 6327879c05

View file

@ -256,7 +256,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)