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

Add zero-size/null-ptr checks to mem managment #142

Merged
merged 1 commit into from
Aug 31, 2024

Conversation

davidozog
Copy link
Contributor

I believe OpenSHMEM requires immediate return of a NULL pointer from the memory management routines if the user request a size of 0.

With these changes, OSHMPI passes the shmalloc and shmem_calloc unit tests from https://github.com/openshmem-org/tests-sos.

@davidozog davidozog force-pushed the pr/alloc_size_zero_fix branch from fe825b9 to 1bcd904 Compare November 30, 2023 16:48
@yfguo yfguo merged commit ee5cf11 into pmodels:main Aug 31, 2024
1 check passed
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