libmypaint icon indicating copy to clipboard operation
libmypaint copied to clipboard

Check return codes everywhere

Open elfring opened this issue 9 years ago • 3 comments

Would you like to add more error handling for return values from functions like the following?

elfring avatar Mar 26 '16 09:03 elfring

Sounds reasonable. Those functions should probably return NULL if the functions you've identified fail.

Do you have a patch, and/or can you further define the scope for this? "Everywhere" is too broad to work from.

achadwick avatar Mar 27 '16 16:03 achadwick

I suggest to avoid ignorance of return values a bit more. How do you think about to improve static source code analysis also for this software?

elfring avatar Mar 27 '16 17:03 elfring

We generally like to automate tests in response to github commits. Perhaps point coverity at it? https://scan.coverity.com/travis_ci

achadwick avatar Mar 27 '16 21:03 achadwick