kbe 614806f5f1 Fix LibraryLoader crash on error during context-transfer restoration
- Track whether transferred thread's original context was successfully restored.
- In the catch block, leak the remote allocation instead of freeing it if the thread was not restored; this prevents the target process from executing freed memory.
- Remove redundant 'op == 0x55' check in InstructionAnalyzer (already matched by (op & 0xF8) == 0x50).
- Simplify MemoryBase ReadString align-down expression to previousLen - (previousLen % nullLen).
- Change StubAllocator size parameter from nint to int for clarity (internal test seam).

Tests: 199 passing, 4 integration/interactive skipped.
2026-07-22 01:24:33 +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%