Skip to content

Commit

Permalink
Check commit hash length
Browse files Browse the repository at this point in the history
  • Loading branch information
robojumper committed Nov 28, 2024
1 parent b70ca76 commit 2eb363c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/ghidra_scripts/DecompMapToGhidra.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ def apply_symbols_map(symbols_map, file_name, build_dir):

path = str(askDirectory("Program build directory (e.g. build/SOUE01)", "Import"))
commit = askString("Commit hash for symbol history", "Confirm")
if len(commit) < 7:
raise ValueError("commit hash " + commit + " is too short")
commit = commit[:7]
new_contents = None
main_symbols = os.path.join(path, "main.elf.MAP")
symbols_map = None
Expand Down

0 comments on commit 2eb363c

Please sign in to comment.