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

fix beyond-buffer access in PhGetRemoteMappedImageGuardFlagsEx #2357

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

ge0rdi
Copy link
Contributor

@ge0rdi ge0rdi commented Jan 2, 2025

Some images (GOG GalaxyClient.exe) have LoadConfig directory smaller than size provided inside IMAGE_LOAD_CONFIG_DIRECTORY structure.

We need to make sure to to access only valid part of buffer returned by PhGetRemoteMappedImageDirectoryEntry.

Found using ApplicationVerifier.

Some images (GOG GalaxyClient.exe) have LoadConfig directory smaller than size
provided inside `IMAGE_LOAD_CONFIG_DIRECTORY` structure.

We need to make sure to to access only valid part of buffer returned by
`PhGetRemoteMappedImageDirectoryEntry`.

Found using ApplicationVerifier.
@jxy-s jxy-s merged commit 9cd7155 into winsiderss:master Jan 3, 2025
3 checks passed
@ge0rdi ge0rdi deleted the avrf-fixes branch January 3, 2025 06:57
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.

2 participants