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 #1
Comments
The malloc calls - yes definitely. The call to fwrite - there's not a lot that can be done if it fails so there isn't much point checking it. |
Closed in 35c4d3d |
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? |
In this case ignoring the return value of fwrite is only as "bad" as ignoring the return value from printf. The project is run through Coverity Scan on a fairly regular basis. |
I wonder still how many return values are ignored (or "overlooked") in the provided source files at the moment. |
Thanks for your input, but it is not helpful to just make speculative comments like this. If you have specific bug reports to make, please do open more reports. |
Does your use of the tool "Coverity" point open issues out around Pthread functions? |
Yes, coverity points out issues with the use of pthreads. I'm sure you are well intentioned, but the manner in which you approach issues here on github in lots of projects is not very ameanable. I would suggest that you do not reply to every comment with a vague question, instead if you can offer specific help I would be happy to receive it. Please do not comment on this issue again, the specific issues you highlighted have been fixed. If you believe there are other issues, please open a new report. |
I find it unclear for me which implementation details are in the waiting queue for further considerations already because of source code analysis reports by this tool.
Do you really want a separate bug report for almost every return value that is ignored so far? |
I think what would be really helpful would be pull requests, that the Le lun. 14 mars 2016 21:05, Markus Elfring [email protected] a
|
There are two outstanding issues found by coverity scan. They are viewable by anyone. What I would like is specific bug requests, not vague questions. I do not want a bug report for each return value that is ignored, I would like considered bug reports that include an analysis of why that particular situation is a problem. You seem to assume that there hasn't been any consideration of return values, this isn't the case. In a very few cases there may be a bug, but just questioning all possible return codes is not constructive. |
Some update candidates were pointed out by a script in the semantic patch language (Coccinelle). |
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: