...
| 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() |
| SEI CERT C++ 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 |
...