Static Value-Flow Analysis
|
#include <SVFBugReport.h>
Public Types | |
enum | BugType { FULLBUFOVERFLOW , PARTIALBUFOVERFLOW , NEVERFREE , PARTIALLEAK , DOUBLEFREE , FILENEVERCLOSE , FILEPARTIALCLOSE , FULLNULLPTRDEREFERENCE , PARTIALNULLPTRDEREFERENCE } |
typedef std::vector< SVFBugEvent > | EventStack |
Public Member Functions | |
GenericBug (BugType bugType, const EventStack &bugEventStack) | |
note: should be initialized with a bugEventStack | |
virtual | ~GenericBug ()=default |
BugType | getBugType () const |
returns bug type | |
const std::string | getLoc () const |
returns bug location as json format string | |
const std::string | getFuncName () const |
return bug source function name | |
const EventStack & | getEventStack () const |
virtual cJSON * | getBugDescription () const =0 |
virtual void | printBugToTerminal () const =0 |
Static Public Attributes | |
static const std::map< GenericBug::BugType, std::string > | BugType2Str |
Protected Attributes | |
BugType | bugType |
const EventStack | bugEventStack |
Definition at line 80 of file SVFBugReport.h.
typedef std::vector<SVFBugEvent> SVF::GenericBug::EventStack |
Definition at line 83 of file SVFBugReport.h.
Enumerator | |
---|---|
FULLBUFOVERFLOW | |
PARTIALBUFOVERFLOW | |
NEVERFREE | |
PARTIALLEAK | |
DOUBLEFREE | |
FILENEVERCLOSE | |
FILEPARTIALCLOSE | |
FULLNULLPTRDEREFERENCE | |
PARTIALNULLPTRDEREFERENCE |
Definition at line 86 of file SVFBugReport.h.
|
inline |
note: should be initialized with a bugEventStack
Definition at line 95 of file SVFBugReport.h.
|
virtualdefault |
|
inline |
|
inline |
Definition at line 112 of file SVFBugReport.h.
const std::string GenericBug::getFuncName | ( | ) | const |
return bug source function name
Definition at line 57 of file SVFBugReport.cpp.
const std::string GenericBug::getLoc | ( | ) | const |
returns bug location as json format string
Definition at line 51 of file SVFBugReport.cpp.
|
pure virtual |
|
protected |
Definition at line 91 of file SVFBugReport.h.
|
protected |
Definition at line 90 of file SVFBugReport.h.
|
static |
Definition at line 87 of file SVFBugReport.h.