|
Static Value-Flow Analysis
|
#include <AEDetector.h>
Public Member Functions | |
| NullptrDerefDetector () | |
| ~NullptrDerefDetector ()=default | |
| void | detect (const ICFGNode *node) override |
| Detects nullptr dereferences issues within a node. | |
| void | handleStubFunctions (const CallICFGNode *call) override |
| Handles external API calls related to nullptr dereferences. | |
| bool | isUninit (AbstractValue v) |
| Checks if an Abstract Value is uninitialized. | |
| void | addBugToReporter (const ICFGNode *node, const SVFStmt *stmt=nullptr) |
| Reports a bug, generating its text only for a new location. | |
| void | reportBug () override |
| Reports all detected nullptr dereference bugs. | |
| void | detectExtAPI (const CallICFGNode *call) |
| Handle external API calls related to nullptr dereferences. | |
| bool | isNull (AbstractValue v) |
| Check if an Abstract Value is NULL (or uninitialized). | |
| bool | canSafelyDerefPtr (const ValVar *ptr, const ICFGNode *node) |
| Public Member Functions inherited from SVF::AEDetector | |
| AEDetector () | |
| Constructor initializes the detector kind to UNKNOWN. | |
| virtual | ~AEDetector ()=default |
| Virtual destructor for safe polymorphic use. | |
| DetectorKind | getKind () const |
| Get the kind of the detector. | |
Static Public Member Functions | |
| static bool | classof (const AEDetector *detector) |
| Static Public Member Functions inherited from SVF::AEDetector | |
| static bool | classof (const AEDetector *detector) |
| Check if the detector is of the UNKNOWN kind. | |
Private Attributes | |
| Set< std::string > | bugLoc |
| Set of locations where bugs have been reported. | |
| SVFBugReport | recoder |
| Recorder for abstract execution bugs. | |
| Map< const ICFGNode *, std::string > | nodeToBugInfo |
| Maps ICFG nodes to bug information. | |
Friends | |
| class | AbstractInterpretation |
Additional Inherited Members | |
| Public Types inherited from SVF::AEDetector | |
| enum | DetectorKind { BUF_OVERFLOW , NULL_DEREF , UNKNOWN } |
| Enumerates the types of detectors available. More... | |
| Protected Attributes inherited from SVF::AEDetector | |
| DetectorKind | kind |
| The kind of the detector. | |
Definition at line 321 of file AEDetector.h.
|
inline |
Definition at line 325 of file AEDetector.h.
|
default |
|
inline |
Reports a bug, generating its text only for a new location.
| node | Pointer to the ICFG node where the bug was detected. |
| stmt | Optional statement to describe; otherwise describe node. |
Definition at line 367 of file AEDetector.h.
Definition at line 706 of file AEDetector.cpp.
|
inlinestatic |
Definition at line 332 of file AEDetector.h.
|
overridevirtual |
Detects nullptr dereferences issues within a node.
| as | Reference to the abstract state. |
| node | Pointer to the ICFG node. |
Implements SVF::AEDetector.
Definition at line 554 of file AEDetector.cpp.
| void NullptrDerefDetector::detectExtAPI | ( | const CallICFGNode * | call | ) |
Handle external API calls related to nullptr dereferences.
| as | Reference to the abstract state. |
| call | Pointer to the call ICFG node. |
Definition at line 648 of file AEDetector.cpp.
|
overridevirtual |
Handles external API calls related to nullptr dereferences.
| call | Pointer to the call ICFG node. |
Implements SVF::AEDetector.
Definition at line 595 of file AEDetector.cpp.
|
inline |
Check if an Abstract Value is NULL (or uninitialized).
| v | An Abstract Value of loaded from an address in an Abstract State. |
Definition at line 423 of file AEDetector.h.
|
inline |
Checks if an Abstract Value is uninitialized.
| v | The Abstract Value to check. |
Definition at line 355 of file AEDetector.h.
|
inlineoverridevirtual |
Reports all detected nullptr dereference bugs.
Implements SVF::AEDetector.
Definition at line 396 of file AEDetector.h.
|
friend |
Definition at line 323 of file AEDetector.h.
|
private |
Set of locations where bugs have been reported.
Definition at line 431 of file AEDetector.h.
Maps ICFG nodes to bug information.
Definition at line 433 of file AEDetector.h.
|
private |
Recorder for abstract execution bugs.
Definition at line 432 of file AEDetector.h.