
...
Incorrect use of the read()
method can result in the wrong number of bytes being read or character sequences being interpreted incorrectly.
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
FIO10-J | Low | Unlikely | Medium | P2 | L3 |
Automated Detection
Tool | Version | Checker | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
Parasoft Jtest |
| CERT.FIO10.NASSIGIO | Ensure the return values of specified file I/O methods are used | ||||||
SonarQube |
| S2674 |
...
Related Guidelines
Bibliography
[API 2006] | |
Section 8.1, "Handling Errors with Return Codes" | |
Chapter 7, "Data Streams, Reading Byte Arrays" | |
...
...