Skip to content

Commit

Permalink
Move all initial access into try/except block
Browse files Browse the repository at this point in the history
  • Loading branch information
atcuno committed Feb 7, 2025
1 parent 968241a commit 9c5b016
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions volatility3/framework/symbols/linux/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,14 +342,13 @@ def files_descriptors_for_process(
try:
files = task.files
fd_table = files.get_fds()
except exceptions.InvalidAddressException:
return None
if fd_table == 0:
return None

if fd_table == 0:
max_fds = files.get_max_fds()
except exceptions.InvalidAddressException:
return None

max_fds = files.get_max_fds()

# corruption check
if max_fds > 500000:
return None
Expand Down

0 comments on commit 9c5b016

Please sign in to comment.