Static Value-Flow Analysis
Loading...
Searching...
No Matches
SVF::PartialBufferOverflowBug Class Reference

#include <SVFBugReport.h>

Inheritance diagram for SVF::PartialBufferOverflowBug:
SVF::BufferOverflowBug SVF::GenericBug

Public Member Functions

 PartialBufferOverflowBug (const EventStack &eventStack, BoundedInt allocLowerBound, BoundedInt allocUpperBound, BoundedInt accessLowerBound, BoundedInt accessUpperBound)
Public Member Functions inherited from SVF::BufferOverflowBug
 BufferOverflowBug (GenericBug::BugType bugType, const EventStack &eventStack, BoundedInt allocLowerBound, BoundedInt allocUpperBound, BoundedInt accessLowerBound, BoundedInt accessUpperBound)
cJSON * getBugDescription () const
void printBugToTerminal () const
Public Member Functions inherited from SVF::GenericBug
 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

Static Public Member Functions

static bool classof (const GenericBug *bug)
 ClassOf.
Static Public Member Functions inherited from SVF::BufferOverflowBug
static bool classof (const GenericBug *bug)
 ClassOf.

Additional Inherited Members

Public Types inherited from SVF::GenericBug
enum  BugType {
  FULLBUFOVERFLOW , PARTIALBUFOVERFLOW , NEVERFREE , PARTIALLEAK ,
  DOUBLEFREE , FILENEVERCLOSE , FILEPARTIALCLOSE , FULLNULLPTRDEREFERENCE ,
  PARTIALNULLPTRDEREFERENCE
}
typedef std::vector< SVFBugEvent > EventStack
Static Public Attributes inherited from SVF::GenericBug
static const OrderedMap< GenericBug::BugType, std::string > BugType2Str
Protected Attributes inherited from SVF::BufferOverflowBug
BoundedInt allocLowerBound
BoundedInt allocUpperBound
BoundedInt accessLowerBound
BoundedInt accessUpperBound
Protected Attributes inherited from SVF::GenericBug
BugType bugType
const EventStack bugEventStack

Detailed Description

Definition at line 159 of file SVFBugReport.h.

Constructor & Destructor Documentation

◆ PartialBufferOverflowBug()

SVF::PartialBufferOverflowBug::PartialBufferOverflowBug ( const EventStack & eventStack,
BoundedInt allocLowerBound,
BoundedInt allocUpperBound,
BoundedInt accessLowerBound,
BoundedInt accessUpperBound )
inline

Definition at line 162 of file SVFBugReport.h.

164 :
BufferOverflowBug(GenericBug::BugType bugType, const EventStack &eventStack, BoundedInt allocLowerBound, BoundedInt allocUpperBound, BoundedInt accessLowerBound, BoundedInt accessUpperBound)

Member Function Documentation

◆ classof()

bool SVF::PartialBufferOverflowBug::classof ( const GenericBug * bug)
inlinestatic

ClassOf.

Definition at line 169 of file SVFBugReport.h.

170 {
171 return bug->getBugType() == GenericBug::PARTIALBUFOVERFLOW;
172 }

The documentation for this class was generated from the following file: