...
Making invalid assumptions about the contents of an array modified by fgets() or fgetws() can result in undefined behavior and abnormal program termination.
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
|---|---|---|---|---|---|
FIO40-C | Low | Probable | Medium | P4 | L3 |
Automated Detection
Tool | Version | Checker | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
| LDRA tool suite |
| 44 S | Enhanced enforcement | ||||||
| R2017b | Use of indeterminate string | Use of buffer from fgets-family function | |||||||
| PRQA QA-C++ | 4.2 | 2956 |
Related Vulnerabilities
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
...