mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-23 18:14:51 +02:00
linux: VMCoreInfo API: AARCH64 uses NUMBER() with hex values. Fortunately, includes the 0x prefix, allowing the parser to still handle these cases correctly
This commit is contained in:
@@ -869,9 +869,9 @@ class VMCoreInfo(interfaces.configuration.VersionableInterface):
|
||||
if key.startswith("SYMBOL(") or key == "KERNELOFFSET":
|
||||
return int(value, 16)
|
||||
elif key.startswith(("NUMBER(", "LENGTH(", "SIZE(", "OFFSET(")):
|
||||
return int(value)
|
||||
return int(value, 0)
|
||||
elif key == "PAGESIZE":
|
||||
return int(value)
|
||||
return int(value, 0)
|
||||
|
||||
# Default, as string
|
||||
return value
|
||||
|
||||
Reference in New Issue
Block a user