#3300 closed defect (invalid)
Check return codes everywhere
Reported by: | Markus Elfring | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 2.1.2 |
Keywords: | error detection, exception handling | Cc: | |
Guest type: | other | Host type: | other |
Description ¶
Some checks for return codes are missing.
Examples:
Would you like to add more error handling for return values from "strdup" like in the member function "Host::parseMountTable" and from "fprintf" in the function "xpidl_write_comment"?
Change History (11)
follow-up: 2 comment:1 by , 15 years ago
comment:2 by , 15 years ago
Replying to klaus:
I suggest to avoid unchecked function calls.
Would you like to detect every error situation as early as possible?
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
The strdup issue is fixed in SVN.
comment:4 by , 15 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Would you like to complete the error detection and corresponding exception handling also for function calls like "fprintf"?
follow-up: 6 comment:5 by , 15 years ago
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
I already explained that I see no value in fixing this third-party code which is used to _build_ VirtualBox. If we'd fix code from the Mozilla project what would be left for them to do? :)
comment:6 by , 15 years ago
Replying to klaus:
Would you like to forward this open issue to the other software project?
comment:7 by , 15 years ago
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
comment:8 by , 15 years ago
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
As you take great pleasure in notifying others about significant flaws in their code, I think it would be best if you took it upon yourself to inform 3rd parties.
comment:9 by , 15 years ago
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
follow-up: 11 comment:10 by , 15 years ago
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
This is no bug report.
comment:11 by , 15 years ago
Replying to klaus:
Why not?
I interpret it as a programming error to ignore return values from function calls that I pointed out.
Since the report is about a very fuzzy topic, I've squeezed as much constructive criticism out of it as possible and added the reported strdup issue to the todo list.
I see very little value in fixing third-party code which is used to build VirtualBox. If that fails due to out of disk space situations this will not go unnoticed.