Skip to content

Commit

Permalink
Merge pull request #1562 from volatilityfoundation/revert-1513-env_va…
Browse files Browse the repository at this point in the history
…r_missing_exception_handler

Revert "Add missing exception handling in env var recovery. Prevent backtraces"
  • Loading branch information
ikelos authored Jan 20, 2025
2 parents 00a69c9 + 74b98e6 commit e158ea7
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions volatility3/framework/plugins/linux/envars.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import logging
from typing import Iterable, Tuple

from volatility3.framework import renderers, interfaces, exceptions
from volatility3.framework import renderers, interfaces
from volatility3.framework.configuration import requirements
from volatility3.framework.interfaces import plugins
from volatility3.framework.objects import utility
Expand Down Expand Up @@ -58,16 +58,10 @@ def get_task_env_variables(
Tuples of (key, value) representing each environment variable.
"""

# This ensures the `task` is valid as well as its
# memory mapping structures
try:
task_name = utility.array_to_string(task.comm)
env_start = task.mm.env_start
env_end = task.mm.env_end
except exceptions.InvalidAddressException:
return None

task_name = utility.array_to_string(task.comm)
task_pid = task.pid
env_start = task.mm.env_start
env_end = task.mm.env_end
env_area_size = env_end - env_start
if not (0 < env_area_size <= env_area_max_size):
vollog.debug(
Expand Down

0 comments on commit e158ea7

Please sign in to comment.