...
Alternately inputting and outputting from a stream without an intervening flush or positioning call is undefined behavior.
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
FIO50-CPP | Low | Likely | Medium | P6 | L2 |
Automated Detection
Tool | Version | Checker | Description |
---|
| CERT_CPP-FIO50-a | Do not alternately input and output from a stream without an intervening flush or positioning call |
Related Vulnerabilities
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
...
This rule supplements FIO39-C. Do not alternately input and output from a stream without an intervening flush or positioning call.
...
Bibliography
[ISO/IEC 9899:1999] | Subclause 7.19.5.3, "The fopen Function" |
[ISO/IEC 14882-2014] | Clause 27, "Input/Output Library" |
...
...