mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-06 01:37:39 +02:00
Merge pull request #1591 from volatilityfoundation/check_sock_access
Fix broken socket retrieval that causes backtrace
This commit is contained in:
@@ -538,11 +538,14 @@ class Sockstat(plugins.PluginInterface):
|
||||
continue
|
||||
sock = socket.sk.dereference()
|
||||
|
||||
sock_type = sock.get_type()
|
||||
family = sock.get_family()
|
||||
try:
|
||||
sock_type = sock.get_type()
|
||||
family = sock.get_family()
|
||||
sock_handler = SockHandlers(vmlinux, task)
|
||||
sock_fields = sock_handler.process_sock(sock)
|
||||
except exceptions.InvalidAddressException:
|
||||
continue
|
||||
|
||||
sock_handler = SockHandlers(vmlinux, task)
|
||||
sock_fields = sock_handler.process_sock(sock)
|
||||
if not sock_fields:
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user