volatilityfoundation / volatility3

Volatility 3.0 development
http://volatilityfoundation.org/
Other
2.72k stars 461 forks source link

add args and kwargs to threads.py init #1234

Closed dadokkio closed 3 months ago

dadokkio commented 3 months ago

Without args and kwargs there were an issue with timeliner plugin that tried to pass additional parameters like progress_callback raising TypeError

Traceback (most recent call last): File "/src/volatility3/volatility3/framework/plugins/timeliner.py", line 261, in run plugin = plugins.construct_plugin( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/src/volatility3/volatility3/framework/plugins/_init.py", line 62, in construct_plugin constructed = plugin( ^^^^^^^ TypeError: Threads.init_() got an unexpected keyword argument 'progress_callback'

After a little debug I discovered that threads was the incriminated subplugin and it was missing additional parameters in init