Closed elfring closed 9 years ago
Would glady accept any improvements!
Are you interested to apply aspect-oriented software development? How do you think about to encapsulate error detection and corresponding exception handling as a reusable aspect in your software?
I'd prefer to keep things simple.
I think most of the error cases are handled, so it's a matter of identifying those which are not and fixing them appropriately.
I'm rarely bothered to implement handling all malloc failures (but I'd gladly accept patches that fix this) simply because of the design of the Linux allocator. Given correct inputs, you'll find that malloc never fails -- just at some point the OOM killer will be invoked when you touch a newly "allocated" page.
I have looked at a few source files for your current software. I have noticed that some checks for return codes are missing.
Would you like to add more error handling for return values from functions like the following?