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.
@@ -243,6 +243,11 @@ public:
243
243
  return saberCondAllocator.get();
244
244
  }
245
245
 
246
+ inline const SVFBugReport& getBugReport() const
247
+ {
248
+ return report;
249
+ }
250
+
246
251
  protected:
247
252
  /// Forward traverse
248
253
  inline void FWProcessCurNode(const DPIm& item) override
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.1549",
3
+ "version": "1.0.1550",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {