Skip to content

latent bug: allocated executable memory is too small to contain jump back into hooked function. #9

@gynt

Description

@gynt

Currently not a bug but could lead to edge-case crash.
Basically, 5 bytes need to be added to the VirtualAlloc call so it guarantees room for the code that does the jump back into the hooked function.

BYTE* gateway = (BYTE*)VirtualAlloc(0, size, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions