oshmpi icon indicating copy to clipboard operation
oshmpi copied to clipboard

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

Open davidozog opened this issue 2 years ago • 0 comments

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 avatar Nov 30 '23 16:11 davidozog