Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTTI Faliure after Module Reload #53

Open
CycloneRing opened this issue Oct 2, 2024 · 0 comments
Open

RTTI Faliure after Module Reload #53

CycloneRing opened this issue Oct 2, 2024 · 0 comments

Comments

@CycloneRing
Copy link

CycloneRing commented Oct 2, 2024

Hi @bb107, Here's another issue I found with MemoryModulePP
I did dig into it and found some clues, So if load a module which uses RTTI (Run-Time Type Information) then Free the module and Load a new modified one it throws std::error on RTTI type conversion and says Access Violation - No RTTI data!
I tracked down the issue and found out it's causing only by usage of

VirtualFree(mod, 0, MEM_RELEASE);

At BOOL MemoryFreeLibrary(HMEMORYMODULE mod) which called

if (!MemoryFreeLibrary(BaseAddress)) __fastfail(FAST_FAIL_FATAL_APP_EXIT);

I'm not sure what is happening but I guess new loaded module allocated memory is some how conflicting with freed memory space?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant