-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
We are researchers from the University of Athens, working on cross-language analysis of Python packages with C/C++ native extensions.
Description
Τhe interval_init() function [1] checks whether malloc() [2] fails, but exits the program instead of handling the error gracefully.
Potential Improvement
It would be nice to handle memory allocations gracefully, instead of exiting the process as we do now.
References
[1]
ailist/ailist/src/ailist/interval.c
Line 11 in 07b7b8a
| interval_t *interval_init(uint32_t start, uint32_t end, int32_t id_value) |
[2]
ailist/ailist/src/ailist/interval.c
Line 15 in 07b7b8a
| interval_t *i = (interval_t *)malloc(sizeof(interval_t)); |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels