mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-10 11:47:38 +02:00
Ensure we throw an appropriate error if there's no patterns available.
This commit is contained in:
@@ -23,6 +23,9 @@ class WuManber(object):
|
||||
def preprocess(self):
|
||||
"""Preprocesses the patterns by populating the three arrays"""
|
||||
|
||||
if not self._patterns:
|
||||
raise ValueError("No Linux symbols/banner patterns available")
|
||||
|
||||
# Set the minimun pattern length
|
||||
self.minimum_pattern_length = min([len(pattern) for pattern in self._patterns])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user