Lines Matching refs:TaintPropagationRule

116   struct TaintPropagationRule {  struct in __anon6a4756a20111::GenericTaintChecker
123 TaintPropagationRule() {} in TaintPropagationRule() argument
125 TaintPropagationRule(unsigned SArg, in TaintPropagationRule() function
133 TaintPropagationRule(unsigned SArg1, unsigned SArg2, in TaintPropagationRule() argument
143 static TaintPropagationRule
197 GenericTaintChecker::TaintPropagationRule in REGISTER_SET_WITH_PROGRAMSTATE()
198 GenericTaintChecker::TaintPropagationRule::getTaintPropagationRule( in REGISTER_SET_WITH_PROGRAMSTATE()
206 TaintPropagationRule Rule = llvm::StringSwitch<TaintPropagationRule>(Name) in REGISTER_SET_WITH_PROGRAMSTATE()
207 .Case("atoi", TaintPropagationRule(0, ReturnValueIndex)) in REGISTER_SET_WITH_PROGRAMSTATE()
208 .Case("atol", TaintPropagationRule(0, ReturnValueIndex)) in REGISTER_SET_WITH_PROGRAMSTATE()
209 .Case("atoll", TaintPropagationRule(0, ReturnValueIndex)) in REGISTER_SET_WITH_PROGRAMSTATE()
210 .Case("getc", TaintPropagationRule(0, ReturnValueIndex)) in REGISTER_SET_WITH_PROGRAMSTATE()
211 .Case("fgetc", TaintPropagationRule(0, ReturnValueIndex)) in REGISTER_SET_WITH_PROGRAMSTATE()
212 .Case("getc_unlocked", TaintPropagationRule(0, ReturnValueIndex)) in REGISTER_SET_WITH_PROGRAMSTATE()
213 .Case("getw", TaintPropagationRule(0, ReturnValueIndex)) in REGISTER_SET_WITH_PROGRAMSTATE()
214 .Case("toupper", TaintPropagationRule(0, ReturnValueIndex)) in REGISTER_SET_WITH_PROGRAMSTATE()
215 .Case("tolower", TaintPropagationRule(0, ReturnValueIndex)) in REGISTER_SET_WITH_PROGRAMSTATE()
216 .Case("strchr", TaintPropagationRule(0, ReturnValueIndex)) in REGISTER_SET_WITH_PROGRAMSTATE()
217 .Case("strrchr", TaintPropagationRule(0, ReturnValueIndex)) in REGISTER_SET_WITH_PROGRAMSTATE()
218 .Case("read", TaintPropagationRule(0, 2, 1, true)) in REGISTER_SET_WITH_PROGRAMSTATE()
219 .Case("pread", TaintPropagationRule(InvalidArgIndex, 1, true)) in REGISTER_SET_WITH_PROGRAMSTATE()
220 .Case("gets", TaintPropagationRule(InvalidArgIndex, 0, true)) in REGISTER_SET_WITH_PROGRAMSTATE()
221 .Case("fgets", TaintPropagationRule(2, 0, true)) in REGISTER_SET_WITH_PROGRAMSTATE()
222 .Case("getline", TaintPropagationRule(2, 0)) in REGISTER_SET_WITH_PROGRAMSTATE()
223 .Case("getdelim", TaintPropagationRule(3, 0)) in REGISTER_SET_WITH_PROGRAMSTATE()
224 .Case("fgetln", TaintPropagationRule(0, ReturnValueIndex)) in REGISTER_SET_WITH_PROGRAMSTATE()
225 .Default(TaintPropagationRule()); in REGISTER_SET_WITH_PROGRAMSTATE()
239 return TaintPropagationRule(1, 2, 0, true); in REGISTER_SET_WITH_PROGRAMSTATE()
242 return TaintPropagationRule(1, 2, 0, false); in REGISTER_SET_WITH_PROGRAMSTATE()
244 return TaintPropagationRule(0, 1, ReturnValueIndex); in REGISTER_SET_WITH_PROGRAMSTATE()
254 return TaintPropagationRule(InvalidArgIndex, 0, true); in REGISTER_SET_WITH_PROGRAMSTATE()
258 return TaintPropagationRule(1, 0, true); in REGISTER_SET_WITH_PROGRAMSTATE()
260 return TaintPropagationRule(0, 2, 1, false); in REGISTER_SET_WITH_PROGRAMSTATE()
263 return TaintPropagationRule(0, ReturnValueIndex); in REGISTER_SET_WITH_PROGRAMSTATE()
265 return TaintPropagationRule(0, ReturnValueIndex); in REGISTER_SET_WITH_PROGRAMSTATE()
272 return TaintPropagationRule(); in REGISTER_SET_WITH_PROGRAMSTATE()
304 TaintPropagationRule Rule = in addSourcesPre()
305 TaintPropagationRule::getTaintPropagationRule(FDecl, Name, C); in addSourcesPre()
445 GenericTaintChecker::TaintPropagationRule::process(const CallExpr *CE, in process()