...
An obvious alternative is to leave room in the buffer for one more character, and when no newline is transferred, append a newline followed by a nullNULL-termination character. This approach is unsafe, because it quietly accepts an input that is not what was actually intended, with unknown consequences.
...
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
|---|---|---|---|---|---|
FIO36-C | 2 ( medium ) | 1 ( unlikely ) | 3 ( low ) | P6 | L2 |
Related Vulnerabilities
...