Skip to content

Commit

Permalink
[CLI] Add check for the presence of raw exec path with bindiff format
Browse files Browse the repository at this point in the history
  • Loading branch information
patacca committed Sep 9, 2024
1 parent 4a1722f commit 98af48d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/qbindiff/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,13 @@ def main(
)
epsilon = DEFAULT_EPSILON

if format == "bindiff" and not (primary_exec and secondary_exec):
logging.error(
f"[!] The path to the raw {'primary' if primary_exec else 'secondary'} executable"
" is missing but it is required to export the result in BinDiff format."
)
return 1

with Progress() as progress:
if not quiet:
load_bar_total = 2
Expand Down

0 comments on commit 98af48d

Please sign in to comment.