svf-lib 1.0.1444 → 1.0.1445

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.
@@ -42,6 +42,7 @@ class SVFIR2ItvExeState
42
42
  {
43
43
  public:
44
44
  typedef ExeState::VAddrs VAddrs;
45
+ static VAddrs globalNullVaddrs;
45
46
  public:
46
47
  SVFIR2ItvExeState(SVFIR *ir) : _svfir(ir) {}
47
48
 
@@ -89,7 +90,10 @@ public:
89
90
 
90
91
  inline VAddrs &getVAddrs(u32_t id)
91
92
  {
92
- return _es.getVAddrs(id);
93
+ if (inVarToAddrsTable(id))
94
+ return _es.getVAddrs(id);
95
+ else
96
+ return globalNullVaddrs;
93
97
  }
94
98
 
95
99
  inline bool inVarToIValTable(u32_t id) const
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.1444",
3
+ "version": "1.0.1445",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {