Skip to content

engine: use PeImage::FromBase in GetModuleSizeOfImage - #1159

Open
gilnett wants to merge 1 commit into
ramensoftware:mainfrom
gilnett:fix/pe-image-safe-module-size
Open

gilnett wants to merge 1 commit into
ramensoftware:mainfrom
gilnett:fix/pe-image-safe-module-size

Conversation

@gilnett

@gilnett gilnett commented Oct 26, 2026

Copy link
Copy Markdown

Replace the unchecked C-style pointer cast in GetModuleSizeOfImage (mods_manager.cpp) with Functions::PeImage::FromBase to validate DOS/NT headers and avoid potential access violations on invalid modules.

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

Successfully merging this pull request may close these issues.

1 participant