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

fixed a bug in LowFragmentationHeap #217

Merged
merged 2 commits into from
Sep 18, 2020
Merged

fixed a bug in LowFragmentationHeap #217

merged 2 commits into from
Sep 18, 2020

Conversation

rdzhaafar
Copy link
Contributor

No description provided.

// When running in a Win10 VM FrontEndHeap does not get initialized,
// so we get a null pointer dereferencing error.
if (FrontEndHeap == NULL) {
return TRUE;
Copy link
Owner

Choose a reason for hiding this comment

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

Good catch! Shouldn't we return FALSE in this case ? Because this means we will return that the debugger was found any time somebody run the tool on Win10.

So maybe we can do something like:
if (FrontEndHeap && *FrontEndHeap == NULL) return TRUE;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My bad! Fixed the fix.

@ayoubfaouzi ayoubfaouzi merged commit f5bf05c into ayoubfaouzi:master Sep 18, 2020
@ayoubfaouzi
Copy link
Owner

Thanks a lot for the fix !

@rdzhaafar
Copy link
Contributor Author

Thanks a lot for the fix !

It's my pleasure to help a project that has helped me

fengjixuchui added a commit to fengjixuchui/al-khaser that referenced this pull request Oct 2, 2020
Merge pull request ayoubfaouzi#217 from rdzhaafar/LowFragmentation…
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