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

Check for null pointer dereference #43

Merged
merged 1 commit into from
Nov 5, 2023

Conversation

JJ-8
Copy link
Contributor

@JJ-8 JJ-8 commented Nov 2, 2023

Hi @m1dugh, since this issue is quite severe for our users I have already made a proposal to fix this problem. However I have NOT tested this at all since I am unable to reproduce this problem and don't have a development environment for your project. So could you verify that this fix is correctly implemented? Thank you in advance.

Change:
The result of Activate should be checked. It may return NULL as described in https://learn.microsoft.com/en-us/windows/win32/api/mmdeviceapi/nf-mmdeviceapi-immdevice-activate This will prevent a null pointer dereference when the Activate function fails. Fixes #42 and see #42 for details.

The result of Activate should be checked. It may return NULL as described in https://learn.microsoft.com/en-us/windows/win32/api/mmdeviceapi/nf-mmdeviceapi-immdevice-activate
This will prevent a null pointer dereference when the Activate function fails.
Fixes m1dugh#42 and see m1dugh#42 for details.
@JJ-8 JJ-8 changed the title Check for null pointer derefence Check for null pointer dereference Nov 2, 2023
@m1dugh
Copy link
Owner

m1dugh commented Nov 5, 2023

Hello, this looks good to me, thanks for the PR, sorry I couldn't make the change myself

@m1dugh m1dugh merged commit d04983f into m1dugh:master Nov 5, 2023
5 of 6 checks passed
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.

EXCEPTION_ACCESS_VIOLATION_READ: Attempted to dereference null pointer
2 participants