Base class for all detectors.
More...
#include <AEDetector.h>
|
| | AEDetector () |
| | Constructor initializes the detector kind to UNKNOWN.
|
| virtual | ~AEDetector ()=default |
| | Virtual destructor for safe polymorphic use.
|
| virtual void | detect (const ICFGNode *node)=0 |
| | Pure virtual function for detecting issues within a node.
|
| virtual void | handleStubFunctions (const CallICFGNode *call)=0 |
| | Pure virtual function for handling stub external API calls. (e.g. UNSAFE_BUFACCESS).
|
| virtual void | reportBug ()=0 |
| | Pure virtual function to report detected bugs.
|
| DetectorKind | getKind () const |
| | Get the kind of the detector.
|
|
| static bool | classof (const AEDetector *detector) |
| | Check if the detector is of the UNKNOWN kind.
|
Base class for all detectors.
Definition at line 42 of file AEDetector.h.
◆ DetectorKind
Enumerates the types of detectors available.
| Enumerator |
|---|
| BUF_OVERFLOW | Detector for buffer overflow issues.
|
| NULL_DEREF | Detector for nullptr dereference issues.
|
| UNKNOWN | Default type if the kind is not specified.
|
Definition at line 49 of file AEDetector.h.
50 {
54 };
@ NULL_DEREF
Detector for nullptr dereference issues.
@ UNKNOWN
Default type if the kind is not specified.
@ BUF_OVERFLOW
Detector for buffer overflow issues.
◆ AEDetector()
| SVF::AEDetector::AEDetector |
( |
| ) |
|
|
inline |
Constructor initializes the detector kind to UNKNOWN.
Definition at line 59 of file AEDetector.h.
DetectorKind kind
The kind of the detector.
◆ ~AEDetector()
| virtual SVF::AEDetector::~AEDetector |
( |
| ) |
|
|
virtualdefault |
Virtual destructor for safe polymorphic use.
◆ classof()
| bool SVF::AEDetector::classof |
( |
const AEDetector * | detector | ) |
|
|
inlinestatic |
Check if the detector is of the UNKNOWN kind.
- Parameters
-
| detector | Pointer to the detector. |
- Returns
- True if the detector is of type UNKNOWN, false otherwise.
Definition at line 71 of file AEDetector.h.
◆ detect()
| virtual void SVF::AEDetector::detect |
( |
const ICFGNode * | node | ) |
|
|
pure virtual |
◆ getKind()
Get the kind of the detector.
- Returns
- The kind of the detector.
Definition at line 98 of file AEDetector.h.
◆ handleStubFunctions()
| virtual void SVF::AEDetector::handleStubFunctions |
( |
const CallICFGNode * | call | ) |
|
|
pure virtual |
◆ reportBug()
| virtual void SVF::AEDetector::reportBug |
( |
| ) |
|
|
pure virtual |
◆ kind
The documentation for this class was generated from the following file:
- /home/runner/work/SVF/SVF/svf/include/AE/Svfexe/AEDetector.h