Skip to content

Commit

Permalink
Merge pull request #1148 from JoelYYoung/nullptr2
Browse files Browse the repository at this point in the history
Nullptr2
  • Loading branch information
yuleisui authored Jul 9, 2023
2 parents 6e59fd2 + cd806ee commit 3f20e97
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions svf/include/Util/SVFBugReport.h
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,18 @@ class SVFBugReport
bugSet.insert(newBug);
break;
}
case GenericBug::FULLNULLPTRDEREFERENCE:
{
newBug = new FullNullPtrDereferenceBug(eventStack);
bugSet.insert(newBug);
break;
}
case GenericBug::PARTIALNULLPTRDEREFERENCE:
{
newBug = new PartialNullPtrDereferenceBug(eventStack);
bugSet.insert(newBug);
break;
}
default:
{
assert(false && "Abstract Execution does NOT hava his bug type!");
Expand Down
4 changes: 3 additions & 1 deletion svf/lib/Util/SVFBugReport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ const std::map<GenericBug::BugType, std::string> GenericBug::BugType2Str =
{GenericBug::PARTIALLEAK, "Partial Leak"},
{GenericBug::FILENEVERCLOSE, "File Never Close"},
{GenericBug::FILEPARTIALCLOSE, "File Partial Close"},
{GenericBug::DOUBLEFREE, "Double Free"}
{GenericBug::DOUBLEFREE, "Double Free"},
{GenericBug::FULLNULLPTRDEREFERENCE, "Full Null Ptr Dereference"},
{GenericBug::PARTIALNULLPTRDEREFERENCE, "Partial Null Ptr Dereference"}
};

const std::string GenericBug::getLoc() const
Expand Down

0 comments on commit 3f20e97

Please sign in to comment.