mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-09 19:27:39 +02:00
Correctly check for a failed read
This commit is contained in:
@@ -161,8 +161,9 @@ class Handles(interfaces.plugins.PluginInterface):
|
||||
except exceptions.SymbolError:
|
||||
return None
|
||||
|
||||
data = self.context.layers.read(virtual_layer_name, kvo + func_addr, 0x200)
|
||||
if data is None:
|
||||
try:
|
||||
data = self.context.layers.read(virtual_layer_name, kvo + func_addr, 0x200)
|
||||
except exceptions.InvalidAddressException:
|
||||
return None
|
||||
|
||||
md = capstone.Cs(capstone.CS_ARCH_X86, capstone.CS_MODE_64)
|
||||
|
||||
Reference in New Issue
Block a user