reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
   90   static const unsigned ReturnValueIndex{std::numeric_limits<unsigned>::max() -

References

tools/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
  308       Result.push_back(ReturnValueIndex);
  351           .Case("fdopen", TaintPropagationRule({}, {ReturnValueIndex}))
  352           .Case("fopen", TaintPropagationRule({}, {ReturnValueIndex}))
  353           .Case("freopen", TaintPropagationRule({}, {ReturnValueIndex}))
  354           .Case("getch", TaintPropagationRule({}, {ReturnValueIndex}))
  355           .Case("getchar", TaintPropagationRule({}, {ReturnValueIndex}))
  357                 TaintPropagationRule({}, {ReturnValueIndex}))
  358           .Case("getenv", TaintPropagationRule({}, {ReturnValueIndex}))
  359           .Case("gets", TaintPropagationRule({}, {0, ReturnValueIndex}))
  362                 TaintPropagationRule({}, {ReturnValueIndex}, VariadicType::None,
  365           .Case("wgetch", TaintPropagationRule({}, {ReturnValueIndex}))
  367           .Case("atoi", TaintPropagationRule({0}, {ReturnValueIndex}))
  368           .Case("atol", TaintPropagationRule({0}, {ReturnValueIndex}))
  369           .Case("atoll", TaintPropagationRule({0}, {ReturnValueIndex}))
  370           .Case("fgetc", TaintPropagationRule({0}, {ReturnValueIndex}))
  371           .Case("fgetln", TaintPropagationRule({0}, {ReturnValueIndex}))
  372           .Case("fgets", TaintPropagationRule({2}, {0, ReturnValueIndex}))
  374           .Case("getc", TaintPropagationRule({0}, {ReturnValueIndex}))
  375           .Case("getc_unlocked", TaintPropagationRule({0}, {ReturnValueIndex}))
  378           .Case("getw", TaintPropagationRule({0}, {ReturnValueIndex}))
  380                 TaintPropagationRule({0, 1, 2, 3}, {1, ReturnValueIndex}))
  381           .Case("read", TaintPropagationRule({0, 2}, {1, ReturnValueIndex}))
  382           .Case("strchr", TaintPropagationRule({0}, {ReturnValueIndex}))
  383           .Case("strrchr", TaintPropagationRule({0}, {ReturnValueIndex}))
  384           .Case("tolower", TaintPropagationRule({0}, {ReturnValueIndex}))
  385           .Case("toupper", TaintPropagationRule({0}, {ReturnValueIndex}))
  400       return TaintPropagationRule({1, 2}, {0, ReturnValueIndex});
  405       return TaintPropagationRule({0, 1}, {ReturnValueIndex});
  414       return TaintPropagationRule({1}, {0, ReturnValueIndex}, VariadicType::Src,
  417       return TaintPropagationRule({}, {0, ReturnValueIndex}, VariadicType::Src,
  422       return TaintPropagationRule({1}, {0, ReturnValueIndex});
  427       return TaintPropagationRule({0}, {ReturnValueIndex});
  429       return TaintPropagationRule({0}, {ReturnValueIndex});
  507     if (ArgNum == ReturnValueIndex) {
  616     if (ArgNum == ReturnValueIndex) {
  617       State = State->add<TaintArgsOnPostVisit>(ReturnValueIndex);