mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-06 09:47:38 +02:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user