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

Memory allocation failures not checked #149

Open
mpartel opened this issue Nov 19, 2023 · 0 comments
Open

Memory allocation failures not checked #149

mpartel opened this issue Nov 19, 2023 · 0 comments

Comments

@mpartel
Copy link
Owner

mpartel commented Nov 19, 2023

Should check the return values of the various *alloc functions, and recover when possible. In some cases we already do.

Some existing checks currently log and abort on failure. Would be better to let the caller handle it.

Not a terribly high priority at least on Linux, given the OOM killer, and most alloc failures are likely quickly followed by a segfault.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant