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

Malloc checking #4

Open
saaros opened this issue Nov 10, 2014 · 0 comments
Open

Malloc checking #4

saaros opened this issue Nov 10, 2014 · 0 comments
Labels

Comments

@saaros
Copy link
Member

saaros commented Nov 10, 2014

OMcahce doesn't do a lot of memory allocation, but where it does, it doesn't check the return values. Consider doing something about this. Just adding checks for NULL isn't enough, failed allocations need to either call abort() (which isn't a nice thing in a library) or they need to roll back the operation and they need tests to make sure it actually works.

@saaros saaros added the bug label Nov 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant