Skip to content

Commit

Permalink
Merge pull request #987 from seviezhou/patch-1
Browse files Browse the repository at this point in the history
 Exclude sources in functions that have summary
  • Loading branch information
yuleisui authored Jan 6, 2023
2 parents 06201be + 6af3140 commit ee72c50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions svf/lib/SABER/LeakChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ void LeakChecker::initSrcs()
// otherwise, this is the source we are interested
else
{
// exclude sources in dead functions
if (cs->getCallSite()->ptrInUncalledFunction() == false)
// exclude sources in dead functions or sources in functions that have summary
if (!cs->getCallSite()->ptrInUncalledFunction() && !isExtCall(cs->getCallSite()->getParent()->getParent()))
{
addToSources(node);
addSrcToCSID(node, cs);
Expand Down

0 comments on commit ee72c50

Please sign in to comment.