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

Fix sized delete of nullptr #181

Merged
merged 2 commits into from
May 7, 2020
Merged

Fix sized delete of nullptr #181

merged 2 commits into from
May 7, 2020

Conversation

mjp41
Copy link
Member

@mjp41 mjp41 commented May 6, 2020

The core snmalloc code assumes if you know the size, then it is not
nullptr. However, the C++ delete operator can be called with nullptr.

This change checks for that case.

mjp41 added 2 commits May 6, 2020 22:40
The core snmalloc code assumes if you know the size, then it is not
nullptr. However, the C++ delete operator can be called with nullptr.

This change checks for that case.
@mjp41 mjp41 merged commit 4347701 into master May 7, 2020
@mjp41 mjp41 deleted the new-fix branch May 7, 2020 20:47
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.

1 participant