From 98af48d9abfd552c9f0814b0c4d4b8c66fd7cb08 Mon Sep 17 00:00:00 2001 From: Riccardo Mori Date: Mon, 9 Sep 2024 11:50:02 +0200 Subject: [PATCH] [CLI] Add check for the presence of raw exec path with bindiff format --- src/qbindiff/__main__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/qbindiff/__main__.py b/src/qbindiff/__main__.py index a047efb..10fd99e 100644 --- a/src/qbindiff/__main__.py +++ b/src/qbindiff/__main__.py @@ -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