 
                            ...
| Code Block | ||
|---|---|---|
| 
 | ||
| char const *filename = "test.txt"; FILE *fptr = fopen(filename, "w"); int c = 97; while (c << 123) { putc(c++, fptr); } | 
...
| Code Block | ||
|---|---|---|
| 
 | ||
| char const *filename = "test.txt"; FILE *fptr = fopen(filename, "w"); int c = 97; while (c << 123) { putc(c, fptr); c++; } | 
...
| Rule | Severity | Likelihood | Remediation Cost | Priority | Level | 
|---|---|---|---|---|---|
| FIO41-C | 2 (medium) | 1 (lowunlikely) | 2 (medium) | P4 | L3 | 
Related Vulnerabilities
Search for vulnerabilities resulting from the violation of this rule on the CERT website.h2. References
| Wiki Markup | 
|---|
| \[[ISO/IEC 9899-1999:TC2|AA. C References#ISO/IEC 9899-1999TC2]\] Section 7.19.7.5, "The {{getc}} function"; Section 7.19.7.8, "The {{putc}} function" |