Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/PhasarLLVM/TaintConfig/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ set(PHASAR_LINK_LIBS
phasar_db
phasar_llvm_db
phasar_llvm_utils
phasar_controlflow
phasar_llvm_controlflow
)

set(LLVM_LINK_COMPONENTS
Expand Down
7 changes: 5 additions & 2 deletions lib/PhasarLLVM/TaintConfig/LLVMTaintConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include "phasar/PhasarLLVM/TaintConfig/LLVMTaintConfig.h"

#include "phasar/PhasarLLVM/ControlFlow/LLVMBasedCFG.h"
#include "phasar/PhasarLLVM/DB/LLVMProjectIRDB.h"
#include "phasar/PhasarLLVM/TaintConfig/TaintConfigBase.h"
#include "phasar/PhasarLLVM/Utils/Annotation.h"
Expand Down Expand Up @@ -481,8 +482,10 @@ LLVMTaintConfig::makeInitialSeedsImpl() const {
InitialSeeds[Inst].insert(Inst);
} else if (const auto *Arg = llvm::dyn_cast<llvm::Argument>(SourceValue);
Arg && !Arg->getParent()->isDeclaration()) {
const auto *FunFirstInst = &Arg->getParent()->getEntryBlock().front();
InitialSeeds[FunFirstInst].insert(Arg);
LLVMBasedCFG C;
for (const auto *SP : C.getStartPointsOf(Arg->getParent())) {
InitialSeeds[SP].insert(Arg);
}
}
}
return InitialSeeds;
Expand Down