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

Return NULL when asking for 0 bytes with MM_ALLOC #2986

Merged
merged 1 commit into from
Aug 21, 2016

Conversation

jasp00
Copy link
Member

@jasp00 jasp00 commented Aug 20, 2016

Consecutive calls to MM_ALLOC with a size of 0 return the same pointer, then the second call to MM_FREE aborts the program.

@jasp00 jasp00 merged commit c5cc89d into LMMS:master Aug 21, 2016
@jasp00 jasp00 deleted the mmalloc0 branch August 21, 2016 23:24
sdasda7777 pushed a commit to sdasda7777/lmms that referenced this pull request Jun 28, 2022
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