frida-fs 7.0.0 → 7.0.1
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.
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -815,8 +815,10 @@ function statsReadField(name, path) {
|
|
|
815
815
|
return undefined;
|
|
816
816
|
}
|
|
817
817
|
const [offset, type] = field;
|
|
818
|
-
const
|
|
819
|
-
const value =
|
|
818
|
+
const address = this.buffer.add(offset);
|
|
819
|
+
const value = (typeof type === "string")
|
|
820
|
+
? NativePointer.prototype["read" + type].call(address)
|
|
821
|
+
: type.call(address, path);
|
|
820
822
|
if (value instanceof Int64 || value instanceof UInt64)
|
|
821
823
|
return value.valueOf();
|
|
822
824
|
return value;
|