mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
fix changes
This commit is contained in:
@@ -30,7 +30,7 @@ def info_to_name(display):
|
||||
|
||||
def ea_to_hex(ea):
|
||||
"""convert effective address (ea) to hex for display"""
|
||||
return f"%08{hex(ea)}"
|
||||
return f"{hex(ea)}"
|
||||
|
||||
|
||||
class CapaExplorerDataItem:
|
||||
|
||||
@@ -261,7 +261,7 @@ def find_capabilities(ruleset: RuleSet, extractor: FeatureExtractor, disable_pro
|
||||
logger.debug("skipping library function 0x%x (%s)", f.address, function_name)
|
||||
meta["library_functions"][f.address] = function_name
|
||||
n_libs = len(meta["library_functions"])
|
||||
percentage = 100 * (n_libs / n_funcs)
|
||||
percentage = round(100 * (n_libs / n_funcs))
|
||||
if isinstance(pb, tqdm.tqdm):
|
||||
pb.set_postfix_str(f"skipped {n_libs} library functions ({percentage}%)")
|
||||
continue
|
||||
|
||||
BIN
monkeytype.sqlite3
Normal file
BIN
monkeytype.sqlite3
Normal file
Binary file not shown.
Reference in New Issue
Block a user