MCPcopy Create free account
hub / github.com/Tencent/TscanCode / checkCastIntToCharAndBack

Method checkCastIntToCharAndBack

trunk/lib/checkother.cpp:227–275  ·  view source on GitHub ↗

---------------------------------------------------------------------------------- The return value of fgetc(), getc(), ungetc(), getchar() etc. is an integer value. If this return value is stored in a character variable and then compared to compared to EOF, which is an integer, the comparison maybe be false. Reference: - Ticket #160 - http://www.cplusplus.com/reference/cstdio/fgetc/ - http://www

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

runSimplifiedChecksFunction · 0.80

Calls 8

isEnabledMethod · 0.80
sizeMethod · 0.80
variableMethod · 0.80
tokAtMethod · 0.80
findMethod · 0.80
endMethod · 0.80
strMethod · 0.45
isCPPMethod · 0.45

Tested by

no test coverage detected