...
Tool | Version | Checker | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
| CodeSonar |
| (general) | CodeSonar considers the possibility that fgets() and fgetws() may return empty strings; warnings of various classes may be triggered depending on subsequent operations on those strings. For example, the "Noncompliant Code Example" cited above would trigger a Buffer Underrun warning. | ||||||
| Compass/ROSE |
|
| Could detect some violations of this rule. In particular, it could detect the noncompliant code example by searching for | ||||||
5.0 |
|
|
...
| CERT C Secure Coding Standard | FIO14-C. Understand the difference between text mode and binary mode with file streams FIO20-C. Avoid unintentional truncation when using fgets() or fgetws() |
| CERT C++ Secure Coding Standard | VOID FIO37-CPP. Do not assume character data has been read |
| MITRE CWE | CWE-119, Improper Restriction of Operations within the Bounds of a Memory Buffer CWE-241, Improper Handling of Unexpected Data Type |
...