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

Make a generic DLL enumeration function that ensures the base address… #1607

Merged
merged 2 commits into from
Feb 8, 2025

Conversation

atcuno
Copy link
Contributor

@atcuno atcuno commented Feb 7, 2025

… is set and we return as many entries as possible #1475

This PR performs two major updates:

  1. The previous code widely caught an invalid address exception, stopping processing early. This patch makes the try/except more granular so we recover much more entries

  2. The previous code returned entries right on the edge of pages, so accessing a required member (DllBase) would then cause a backtrace. This broke ldrmodules in mass testing. We no longer return broken/useless entries.

Closes #1475

… is set and we return as many entries as possible #1475
@atcuno atcuno requested a review from ikelos February 7, 2025 21:09
Copy link
Member

@ikelos ikelos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I'm a little bit squeamish at diving into the vol.type_name, but I see that's how it was done previously so not for cleaning up in this PR at least...

@ikelos ikelos merged commit ca420d9 into develop Feb 8, 2025
24 checks passed
@ikelos ikelos deleted the issue_1475_ldrmodules branch February 8, 2025 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ldrmodules needs fix after dlllist update
2 participants