b06a034072a708fad83b54fe7ff98da10d60b7ec
The x64 frame math (0x20 + 8*stackArgs) and x86 arg buffer size grow with the argument count. An absurdly large count could overflow int and produce a bogus or negative frame. Add a MaxArguments (256) bound checked at the public entry — far above any real calling convention — so the arithmetic stays in range. Add a test asserting the cap is inclusive and count+1 throws. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Description
Wite Magic is a C# library to read, write and execute remote code into a target process for analysis, debuging and mod creation.
481 KiB
Languages
C#
100%