Merge pull request #1562 from volatilityfoundation/revert-1513-env_var_missing_exception_handler

Revert "Add missing exception handling in env var recovery. Prevent backtraces"
This commit is contained in:
ikelos
2025-01-20 00:00:21 +00:00
committed by GitHub
+4 -10
View File
@@ -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
@@ -58,16 +58,10 @@ class Envars(plugins.PluginInterface):
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(