-
Notifications
You must be signed in to change notification settings - Fork 1k
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 + Tests: Add more tests covering the modules API, fix error handling bug that were found. #177
Conversation
- `DetoursFindFunction` wasn't gracefully handling NULL function name. - `DetourEnumerateModules` wasn't resetting GLE on success. - `DetourEnumerateExports` wasn't gracefully handling NULL export callback. - `DetourEnumerateImports` wasn't gracefully handling NULL arguments.
9b200f5
to
3bfbe37
Compare
Test basic functionality and error handling of the Detours Module API. * DetourLoadImageHlp * DetourFindFunction * DetourEnumerateModules * DetourEnumerateExports * DetourEnumerateImports * DetourGetSizeOfPayloads * DetourFindPayload * DetourFindPayloadEx * DetourRestoreAfterWithEx
Hello @bgianfo! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks for the tests and fixes!
Apologies, I am afraid I am encountering technical difficulties that might have hampered my ability to assist with merging this pull request. I will continue to try to assist if there are further changes to this pull request. |
…ing bug that were found. (microsoft#177) * Fix: Handle more error cases in module API. - `DetoursFindFunction` wasn't gracefully handling NULL function name. - `DetourEnumerateModules` wasn't resetting GLE on success. - `DetourEnumerateExports` wasn't gracefully handling NULL export callback. - `DetourEnumerateImports` wasn't gracefully handling NULL arguments. * Tests: Add more tests covering the modules API. Test basic functionality and error handling of the Detours Module API. * DetourLoadImageHlp * DetourFindFunction * DetourEnumerateModules * DetourEnumerateExports * DetourEnumerateImports * DetourGetSizeOfPayloads * DetourFindPayload * DetourFindPayloadEx * DetourRestoreAfterWithEx
This PR add more tests for the basic functionality and error handling of the Detours Module API.
DetourLoadImageHlp
DetourFindFunction
DetourEnumerateModules
DetourEnumerateExports
DetourEnumerateImports
DetourGetSizeOfPayloads
DetourFindPayload
DetourFindPayloadEx
DetourRestoreAfterWithEx
It also fixes some error handling issues that the tests found in the module API.
DetoursFindFunction
wasn't gracefully handling NULL function name.DetourEnumerateModules
wasn't resetting GLE on success.DetourEnumerateExports
wasn't gracefully handling NULL export callback.DetourEnumerateImports
wasn't gracefully handling NULL arguments.Microsoft Reviewers: Open in CodeFlow