mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-03 05:58:45 +02:00
The sorted function requires a keyword argument for the key.
This commit is contained in:
@@ -81,7 +81,7 @@ if __name__ == '__main__':
|
||||
scan_results = []
|
||||
print(" Self-referential data")
|
||||
# Sort by largest pointer size, since the self-ref finder will find larger sizes when searching for smaller)
|
||||
for test in sorted(selfref_results, lambda x: -x.ptr_size):
|
||||
for test in sorted(selfref_results, key = lambda x: -x.ptr_size):
|
||||
best_found = None
|
||||
print(" " + test.layer_type.__name__ + ": ")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user