...
FindBugs version 1.3.9 can detect violations of this rule guideline with the INT: Bad comparison of nonnegative value with negative constant detector.
...
Search for vulnerabilities resulting from the violation of this rule guideline on the CERT website.
Other Languages
This rule guideline appears in the C Secure Coding Standard as FIO34-C. Use int to capture the return value of character IO functions.
This rule guideline appears in the C++ Secure Coding Standard as FIO34-CPP. Use int to capture the return value of character IO functions.
...