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
Completion of error handling #644
Comments
We never check for return values of In The Feel free to open pull requests for the latter two, and for similar cases if you find any. |
I suggest to avoid ignorance of return values a bit more. Are you interested to apply aspect-oriented software development? |
We do pay attention to return values wherever it really makes sense. I don't see how that applies to Disregard my earlier comment on |
How do you think about to improve static source code analysis also for your software? Do you find information sources like the following useful?
|
Your first two links point to non-existent content. The latter is about C++, so it's not applicable to the system project, which is written in C. We do run static checkers on the code base on a nightly base: https://scan.coverity.com/projects/350/ The latter produces lots of false positives though, as LLVM does not take our automatic cleanup annotations into account. If that could be improved, I'm happy to tweak the scripts. Any type of automated checking and ways of improving the software is generally interesting. But please stick to suggestions that apply to the goals of the software project at hand. |
A tool like AspectC++ can also be reused for source files written in the C programming language. |
No, AFAIK, we refrain from using software generation tools. And I can't quite follow what you're suggesting. Could you maybe post to our ML, describing what you have in mind, and providing some easy to understand examples? Thanks! |
Are you used to the identification of cross-cutting concerns? Would you eventually prefer to achieve corresponding improvements by the Coccinelle software instead? |
If you want to provide semantic Coccinelle patches for common patterns of mistakes that you spot, please collect them in a new repository. We are happy to link to it, as long as it is maintained, or even host it under the umbrella of our GitHub organization. Not sure if those patches would be very specific to systemd though. |
How do you think about to extend another semantic patch approach? |
I'm really lost in parsing your cryptic posts, sorry. Please provide concrete examples of what you have in mind, specifically for this project. Open a PR containing your changes, so we have a look. Or post to the ML, providing comprehensive examples. Thanks. |
I suggest to look for recurring patterns in source files. It seems that there are some open issues left over despite of the reuse of two popular static source code analysis tools here. Dedicated software development tools can help you more than you might know at the moment, can't they? |
Tools are generally welcome. Please use them and provide patches. If possible, we should hook them up so they run automatically, in which case any help of achieving that is appreciated. |
If a higher level patch format would be reused, further update suggestions could be applied to a wider range of source files to some degree automatically. |
@zonque sounds (almost) like a bot to me |
@mbiebl: Would you like to continue a constructive discussion around update candidates in this software? |
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?
The text was updated successfully, but these errors were encountered: