Skip to content

BUG: add missing checks for nullptr in mm_new(|_nan)#547

Open
neutrinoceros wants to merge 1 commit intopydata:masterfrom
neutrinoceros:bug/526-nullptr
Open

BUG: add missing checks for nullptr in mm_new(|_nan)#547
neutrinoceros wants to merge 1 commit intopydata:masterfrom
neutrinoceros:bug/526-nullptr

Conversation

@neutrinoceros
Copy link
Copy Markdown
Collaborator

fix #526 as suggested
I note that the return value of mm_new is already being checked for null pointers in some places but not all, which means it only moves the location of a segfault in at only some cases. I think we need to track this too (checking for null pointers everywhere these functions are called), but IMO it's okay to do as a follow up. Leaving it to @rgommers to advise here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mm_new/mm_new_nan: three unchecked malloc calls — segfault on OOM

1 participant