svf-lib 1.0.1549 → 1.0.1550
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.
|
Binary file
|
|
Binary file
|
|
@@ -84,6 +84,7 @@ public:
|
|
|
84
84
|
|
|
85
85
|
public:
|
|
86
86
|
enum BugType {FULLBUFOVERFLOW, PARTIALBUFOVERFLOW, NEVERFREE, PARTIALLEAK, DOUBLEFREE, FILENEVERCLOSE, FILEPARTIALCLOSE};
|
|
87
|
+
static const std::map<GenericBug::BugType, std::string> BugType2Str;
|
|
87
88
|
|
|
88
89
|
protected:
|
|
89
90
|
BugType bugType;
|
|
@@ -355,7 +356,17 @@ public:
|
|
|
355
356
|
* function: pass file path, open the file and dump bug report as JSON format
|
|
356
357
|
* usage: dumpToFile("/path/to/file")
|
|
357
358
|
*/
|
|
358
|
-
void dumpToJsonFile(const std::string& filePath);
|
|
359
|
+
void dumpToJsonFile(const std::string& filePath) const;
|
|
360
|
+
|
|
361
|
+
/*
|
|
362
|
+
* function: get underlying bugset
|
|
363
|
+
* usage: getBugSet()
|
|
364
|
+
*/
|
|
365
|
+
const BugSet &getBugSet() const
|
|
366
|
+
{
|
|
367
|
+
return bugSet;
|
|
368
|
+
}
|
|
369
|
+
|
|
359
370
|
};
|
|
360
371
|
}
|
|
361
372
|
|