File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
lib/PhasarLLVM/TaintConfig Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ set(PHASAR_LINK_LIBS
55 phasar_db
66 phasar_llvm_db
77 phasar_llvm_utils
8+ phasar_controlflow
9+ phasar_llvm_controlflow
810)
911
1012set (LLVM_LINK_COMPONENTS
Original file line number Diff line number Diff line change 99
1010#include " phasar/PhasarLLVM/TaintConfig/LLVMTaintConfig.h"
1111
12+ #include " phasar/PhasarLLVM/ControlFlow/LLVMBasedCFG.h"
1213#include " phasar/PhasarLLVM/DB/LLVMProjectIRDB.h"
1314#include " phasar/PhasarLLVM/TaintConfig/TaintConfigBase.h"
1415#include " phasar/PhasarLLVM/Utils/Annotation.h"
@@ -481,8 +482,10 @@ LLVMTaintConfig::makeInitialSeedsImpl() const {
481482 InitialSeeds[Inst].insert (Inst);
482483 } else if (const auto *Arg = llvm::dyn_cast<llvm::Argument>(SourceValue);
483484 Arg && !Arg->getParent ()->isDeclaration ()) {
484- const auto *FunFirstInst = &Arg->getParent ()->getEntryBlock ().front ();
485- InitialSeeds[FunFirstInst].insert (Arg);
485+ LLVMBasedCFG C;
486+ for (const auto *SP : C.getStartPointsOf (Arg->getParent ())) {
487+ InitialSeeds[SP].insert (Arg);
488+ }
486489 }
487490 }
488491 return InitialSeeds;
You can’t perform that action at this time.
0 commit comments