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 memory management issues causing failures under the scudo allocator #67

Merged
merged 1 commit into from
Jan 6, 2020

Conversation

delroth
Copy link
Contributor

@delroth delroth commented Oct 15, 2019

In a few places in the nullmailer codebase delete is used to free memory allocated via new[], which is invalid C++. Most memory allocators don't care, but some hardened allocators (e.g. Scudo) will abort in such conditions.

Tested that nullmailer runs under the scudo allocator using this patch.

@bruceg bruceg merged commit 073f4e9 into bruceg:master Jan 6, 2020
@bruceg
Copy link
Owner

bruceg commented Jan 6, 2020

Thanks!

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.

2 participants