mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-09 11:17:38 +02:00
Merge pull request #1593 from volatilityfoundation/mountinfo_superblock_check
Add missing pointer validation check in mountinfo
This commit is contained in:
@@ -93,11 +93,14 @@ class MountInfo(plugins.PluginInterface):
|
||||
return None
|
||||
|
||||
mnt_root_path = mnt_root.path()
|
||||
superblock = mnt.get_mnt_sb()
|
||||
|
||||
mnt_id: int = mnt.mnt_id
|
||||
parent_id: int = mnt.mnt_parent.mnt_id
|
||||
|
||||
superblock = mnt.get_mnt_sb()
|
||||
if not (superblock and superblock.is_readable()):
|
||||
return None
|
||||
|
||||
st_dev = f"{superblock.major}:{superblock.minor}"
|
||||
|
||||
mnt_opts: List[str] = []
|
||||
|
||||
Reference in New Issue
Block a user