REDIVIVUS

Proposals / #1531

Mac IsBadReadPtr: BOOL __cdecl (void* pData, uint32_t nSize) Win32 shim

checked · by KierTaylor · submitted 2026-11-08

This is the Mac Win32-shim IsBadReadPtr. The body ignores its args and returns XOR EAX,EAX (always readable). The only caller, WriteHexDumpLogEntry 0x002f06b6, stores [ESP]=the pointer and [ESP+4]=ESI (the length), then TEST EAX,EAX / JNZ, so the return is used. This matches Win32 BOOL IsBadReadPtr(const void*, UINT_PTR).

Changes 1, applied together

  1. Set prototype mac 0x00028d78

    signatureundefined IsBadReadPtr(void)→BOOL IsBadReadPtr(void* pData, uint32_t nSize)
    conventionunknown→__cdecl