2.0.3 #123

Open
defnotken wants to merge 116 commits from 2.0.3 into master
Showing only changes of commit 22fe9901a4 - Show all commits

View File

@@ -178,18 +178,14 @@ public sealed class GameObjectHandler : DisposableMediatorSubscriberBase, IHighP
var prevDrawObj = DrawObjectAddress;
string? nameString = null;
// Resolve address and validate BEFORE first deref
var nextAddr = _getAddress();
// Optional: catch the root cause quickly
// if nextAddr is 32-bit-ish, you're being fed an id/sentinel
if (nextAddr != IntPtr.Zero && !PtrGuard.LooksLikePtr(nextAddr))
{
Logger.LogWarning("[{this}] _getAddress returned non-pointer: 0x{addr:X}", this, (ulong)nextAddr);
nextAddr = IntPtr.Zero;
}
// Must be readable at least for a GameObject header before touching it
if (nextAddr != IntPtr.Zero &&
!PtrGuard.IsReadable(nextAddr, (nuint)sizeof(FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject)))
{