Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions blosc/blosc.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,11 @@ static uint8_t *my_malloc(size_t size)
#endif /* _WIN32 */

if (block == NULL || res != 0) {
printf("Error allocating memory!");
return NULL;
/* The callers size their scratch buffers from the compressed header and
cannot recover from a NULL here, so bail out instead of returning it.
stderr is unbuffered, so the message survives the abort(). */
fprintf(stderr, "Error allocating memory!\n");
abort();
}

return (uint8_t *)block;
Expand Down
Loading