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

Method checkSuspiciousStringCompare

trunk/lib/checkstring.cpp:144–203  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Detect "str == '\0'" where "*str == '\0'" is correct. Comparing char* with each other instead of using strcmp() -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

runChecksFunction · 0.80

Calls 11

swapFunction · 0.85
isEnabledMethod · 0.80
sizeMethod · 0.80
astOperand1Method · 0.80
astOperand2Method · 0.80
isCMethod · 0.80
variableMethod · 0.80
isPointerMethod · 0.80
expressionStringMethod · 0.80
isArrayOrPointerMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected