From 916a47286c28b3428144d436e3bec444bca158c9 Mon Sep 17 00:00:00 2001 From: Nikhil Parasaram Date: Wed, 22 Dec 2021 16:36:09 +0000 Subject: [PATCH] Support multiple function names (#1571) --- mythril/analysis/report.py | 2 +- mythril/disassembler/disassembly.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mythril/analysis/report.py b/mythril/analysis/report.py index add8ad72..ea31a10e 100644 --- a/mythril/analysis/report.py +++ b/mythril/analysis/report.py @@ -182,7 +182,7 @@ class Issue: try: sig = signatures.get(_hash) - + # TODO: Check other mythx tools for dependency before supporting multiple possible function names if len(sig) > 0: step["name"] = sig[0] else: diff --git a/mythril/disassembler/disassembly.py b/mythril/disassembler/disassembly.py index 00a76aba..6c96803c 100644 --- a/mythril/disassembler/disassembly.py +++ b/mythril/disassembler/disassembly.py @@ -97,7 +97,7 @@ def get_function_info( function_names = signature_database.get(function_hash) if len(function_names) > 0: - function_name = function_names[0] + function_name = " or ".join(function_names) else: function_name = "_function_" + function_hash