Skip to content

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
@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