Open
Description
The h3 C library does not handle the case of malloc
/calloc
/realloc
returning NULL
in a robust manner. If assertions are enabled, the library crashes, otherwise it will use the NULL pointer leading to undefined behavior. While I understand the convenience of this design in the C library, not propagating OOM errors up the stack means binding code like this is not reliable:
h3-java/src/main/c/h3-java/src/jniapi.c
Line 44 in ed818d3
Metadata
Metadata
Assignees
Labels
No labels