REDIVIVUS

Proposals / #1509

Mac CRASHY_OnMallocErrorBreak: void __cdecl (void) hook

checked · by KierTaylor · submitted 2026-11-08

It reads no register or stack args. The body loads ECX = a global, EDX = LEA of the message and [ESP] = 1, calls CRASHY_HandleSystemLibraryError 0x000073ad, then plain RET. It replaces the system void(void) malloc_error_break symbol: its address is stored as a hook by CRASHY_InstallHandlers (0x0000707c) and it is never called directly, so there is no return value.

Changes 1, applied together

  1. Set prototype mac 0x0000738e

    signatureundefined CRASHY_OnMallocErrorBreak(void)→void CRASHY_OnMallocErrorBreak(void)
    conventionunknown→__cdecl