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

stage_mem_gc and thmap_del don't handle malloc failure #11

Open
riastradh opened this issue Jan 31, 2023 · 0 comments
Open

stage_mem_gc and thmap_del don't handle malloc failure #11

riastradh opened this issue Jan 31, 2023 · 0 comments

Comments

@riastradh
Copy link
Contributor

thmap/src/thmap.c

Lines 836 to 838 in 8149b27

gc = malloc(sizeof(thmap_gc_t));
gc->addr = addr;
gc->len = len;

thmap_del API has no way to report allocation failure to the caller.

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

No branches or pull requests

1 participant