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(plugins): Load correct pages for modules #6598

Merged

Conversation

sqwishy
Copy link
Contributor

@sqwishy sqwishy commented Oct 4, 2024

This VirtualQueryEx() loop is called for each module in a process. It reads pages starting at the module address but seems to continue past into other modules and into dynamic allocations also.

This check stops enumerating pages once it encounters one that no longer belongs to the module for which pages are being collected.

(Also this function opens two handles, this adds a clean up for the first handle if opening the second fails.)

Fixes #6558

Checks

This `VirtualQueryEx()` loop is called for each module in a
process. It reads pages starting at the module address but seems to
continue past into other modules and into dynamic allocations also.

This check stops enumerating pages once it encounters one that no longer
belongs to the module for which pages are being collected.

(Also this function opens two handles, this adds a clean up for the
first handle if opening the second fails.)

Fixes mumble-voip#6558
@sqwishy sqwishy force-pushed the windows-memory-enumeration branch from d2e2221 to 1498b83 Compare October 4, 2024 17:37
@davidebeatrici
Copy link
Member

Oh... now I feel bad for complaining about the API in #6491 and #6558 as there is a proper reason for performance to be so terrible.

It's entirely my fault, as I'm the sole person who worked on the code. Sorry about that.

@davidebeatrici davidebeatrici merged commit cb01bfa into mumble-voip:master Oct 4, 2024
15 checks passed
@davidebeatrici
Copy link
Member

Thank you for finding the cause and submitting a fix!

@Krzmbrzl
Copy link
Member

Krzmbrzl commented Oct 4, 2024

💚 All backports created successfully

Status Branch Result
1.5.x

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Hartmnt added a commit that referenced this pull request Oct 14, 2024
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.

Mumble lags and freezing when Left 4 Dead 2 is launched. PA not working
4 participants