mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-27 20:14:51 +02:00
Move all initial access into try/except block
This commit is contained in:
@@ -342,14 +342,13 @@ class LinuxUtilities(interfaces.configuration.VersionableInterface):
|
||||
try:
|
||||
files = task.files
|
||||
fd_table = files.get_fds()
|
||||
if fd_table == 0:
|
||||
return None
|
||||
|
||||
max_fds = files.get_max_fds()
|
||||
except exceptions.InvalidAddressException:
|
||||
return None
|
||||
|
||||
if fd_table == 0:
|
||||
return None
|
||||
|
||||
max_fds = files.get_max_fds()
|
||||
|
||||
# corruption check
|
||||
if max_fds > 500000:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user