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

Avoid NULL pointer dereference #1154

Merged
merged 1 commit into from
Jan 24, 2024
Merged

Conversation

blawrence-ont
Copy link
Contributor

If the allocated region is 0 bytes then it's unsafe to dereference it.

Fixes #1147.

If the allocated region is 0 bytes then it's unsafe to dereference it.

Fixes lh3#1147.
@lh3 lh3 merged commit f3e59fc into lh3:master Jan 24, 2024
3 checks passed
@blawrence-ont blawrence-ont deleted the fix-nullptr-deref branch January 26, 2024 10:16
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.

Crash when calling mm_mapopt_update() due to NULL pointer dereference
2 participants