kbe d04428b42e Fix fallback read too short for sparse prologues in redirection helper
Replace the two-attempt read with a single read sized to the smaller of:
- detourLength + 16 (the decoder's preferred window), and
- bytes remaining in the current page (so ReadProcessMemory does not fail whole read).

Reading only detourLength bytes could leave the instruction analyzer without enough
bytes to resolve a multi-byte instruction that crosses the splice point on
sparse prologues. Reading up to the page boundary gives the largest safe window.

Tests: 199 passing, 4 integration/interactive skipped.
2026-07-22 01:36:52 +02:00
2026-07-21 22:30:10 +02:00
2026-07-21 22:30:10 +02:00
2026-07-21 22:30:10 +02:00
2026-07-21 22:30:10 +02:00
2026-07-21 20:28:59 +00:00
2026-07-21 20:28:59 +00:00
2026-07-21 22:30:10 +02:00

WhiteMagic

Wite Magic is a C# library to read, write and execute remote code into a target process for analysis, debuging and mod creation.

S
Description
Wite Magic is a C# library to read, write and execute remote code into a target process for analysis, debuging and mod creation.
Readme MIT
481 KiB
Languages
C# 100%