• Home
  • Raw
  • Download

Lines Matching refs:FDecl

97   bool checkTaintedBufferSize(const CallExpr *CE, const FunctionDecl *FDecl,
144 getTaintPropagationRule(const FunctionDecl *FDecl,
199 const FunctionDecl *FDecl, in REGISTER_SET_WITH_PROGRAMSTATE()
233 if ( (BId = FDecl->getMemoryFunctionKind()) ) in REGISTER_SET_WITH_PROGRAMSTATE()
252 if (C.isCLibraryFunction(FDecl, "snprintf") || in REGISTER_SET_WITH_PROGRAMSTATE()
253 C.isCLibraryFunction(FDecl, "sprintf")) in REGISTER_SET_WITH_PROGRAMSTATE()
255 else if (C.isCLibraryFunction(FDecl, "strcpy") || in REGISTER_SET_WITH_PROGRAMSTATE()
256 C.isCLibraryFunction(FDecl, "stpcpy") || in REGISTER_SET_WITH_PROGRAMSTATE()
257 C.isCLibraryFunction(FDecl, "strcat")) in REGISTER_SET_WITH_PROGRAMSTATE()
259 else if (C.isCLibraryFunction(FDecl, "bcopy")) in REGISTER_SET_WITH_PROGRAMSTATE()
261 else if (C.isCLibraryFunction(FDecl, "strdup") || in REGISTER_SET_WITH_PROGRAMSTATE()
262 C.isCLibraryFunction(FDecl, "strdupa")) in REGISTER_SET_WITH_PROGRAMSTATE()
264 else if (C.isCLibraryFunction(FDecl, "wcsdup")) in REGISTER_SET_WITH_PROGRAMSTATE()
295 const FunctionDecl *FDecl = C.getCalleeDecl(CE); in addSourcesPre() local
296 if (!FDecl || FDecl->getKind() != Decl::Function) in addSourcesPre()
299 StringRef Name = C.getCalleeName(FDecl); in addSourcesPre()
305 TaintPropagationRule::getTaintPropagationRule(FDecl, Name, C); in addSourcesPre()
372 const FunctionDecl *FDecl = C.getCalleeDecl(CE); in addSourcesPost() local
373 if (!FDecl || FDecl->getKind() != Decl::Function) in addSourcesPost()
376 StringRef Name = C.getCalleeName(FDecl); in addSourcesPost()
409 const FunctionDecl *FDecl = C.getCalleeDecl(CE); in checkPre() local
410 if (!FDecl || FDecl->getKind() != Decl::Function) in checkPre()
413 StringRef Name = C.getCalleeName(FDecl); in checkPre()
420 if (checkTaintedBufferSize(CE, FDecl, C)) in checkPre()
612 const FunctionDecl *FDecl = C.getCalleeDecl(CE); in getPrintfFormatArgumentNum() local
613 if (!FDecl) in getPrintfFormatArgumentNum()
615 for (const auto *Format : FDecl->specific_attrs<FormatAttr>()) { in getPrintfFormatArgumentNum()
693 const FunctionDecl *FDecl, in checkTaintedBufferSize() argument
698 if ( (BId = FDecl->getMemoryFunctionKind()) ) in checkTaintedBufferSize()
713 if (C.isCLibraryFunction(FDecl, "malloc") || in checkTaintedBufferSize()
714 C.isCLibraryFunction(FDecl, "calloc") || in checkTaintedBufferSize()
715 C.isCLibraryFunction(FDecl, "alloca")) in checkTaintedBufferSize()
717 else if (C.isCLibraryFunction(FDecl, "memccpy")) in checkTaintedBufferSize()
719 else if (C.isCLibraryFunction(FDecl, "realloc")) in checkTaintedBufferSize()
721 else if (C.isCLibraryFunction(FDecl, "bcopy")) in checkTaintedBufferSize()