svf-lib 1.0.1537 → 1.0.1539
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -112,7 +112,7 @@ public:
|
|
|
112
112
|
values.push_back(val);
|
|
113
113
|
//llvm::ArrayRef<llvm::Metadata*> ar(metavalues);
|
|
114
114
|
// FIXME: delete the old MDNode
|
|
115
|
-
inst->setMetadata(str, MDNode::get(inst->getContext(),
|
|
115
|
+
inst->setMetadata(str, MDNode::get(inst->getContext(), nullptr));
|
|
116
116
|
//inst->setMetadata(str, llvm::MDNode::get(inst->getContext(), ar));
|
|
117
117
|
}
|
|
118
118
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -48,7 +48,7 @@ namespace SVF
|
|
|
48
48
|
*/
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class SVFBugEvent
|
|
52
52
|
{
|
|
53
53
|
public:
|
|
54
54
|
enum EventType
|
|
@@ -65,8 +65,8 @@ protected:
|
|
|
65
65
|
const SVFInstruction *eventInst;
|
|
66
66
|
|
|
67
67
|
public:
|
|
68
|
-
|
|
69
|
-
virtual ~
|
|
68
|
+
SVFBugEvent(u32_t typeAndInfoFlag, const SVFInstruction *eventInst): typeAndInfoFlag(typeAndInfoFlag), eventInst(eventInst) { };
|
|
69
|
+
virtual ~SVFBugEvent() = default;
|
|
70
70
|
|
|
71
71
|
inline u32_t getEventType() const
|
|
72
72
|
{
|
|
@@ -80,7 +80,7 @@ public:
|
|
|
80
80
|
class GenericBug
|
|
81
81
|
{
|
|
82
82
|
public:
|
|
83
|
-
typedef std::vector<
|
|
83
|
+
typedef std::vector<SVFBugEvent> EventStack;
|
|
84
84
|
|
|
85
85
|
public:
|
|
86
86
|
enum BugType {FULLBUFOVERFLOW, PARTIALBUFOVERFLOW, NEVERFREE, PARTIALLEAK, DOUBLEFREE, FILENEVERCLOSE, FILEPARTIALCLOSE};
|