Add capstone to test system requirements. Allow lazy type checks

This commit is contained in:
Andrew Case
2024-12-09 13:19:06 -06:00
parent af65d7e32d
commit 13eae6c3df
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -37,6 +37,7 @@ dev = [
test = [
"volatility3[dev]",
"pytest>=8.3.3,<9",
"capstone>=5.0.3,<6",
"yara-x>=0.10.0,<1",
]
@@ -112,7 +112,7 @@ class DirectSystemCalls(interfaces.plugins.PluginInterface):
syscall_finder: syscall_finder_type,
data: bytes,
address: int,
) -> Optional[Tuple[str, capstone._cs_insn]]:
) -> Optional[Tuple[str, "capstone._cs_insn"]]:
"""
Determines if the bytes starting at `data` represent a valid syscall instrunction invocation block