From 12382fee6ab9e4fcfc707f4622d1233f150ae4fd Mon Sep 17 00:00:00 2001 From: Zeecka Date: Tue, 30 Dec 2025 17:10:14 +0100 Subject: [PATCH] add comments --- aperisolve/analyzers/binwalk.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aperisolve/analyzers/binwalk.py b/aperisolve/analyzers/binwalk.py index 950d14a..6c05b9a 100644 --- a/aperisolve/analyzers/binwalk.py +++ b/aperisolve/analyzers/binwalk.py @@ -45,6 +45,8 @@ def analyze_binwalk(input_img: Path, output_dir: Path) -> None: if extracted_dir.exists(): shutil.rmtree(extracted_dir) + # Only report error if stderr exists AND extraction failed. + # If zip_exist is True, binwalk worked (despite warnings), so we proceed. if len(stderr) > 0 and not zip_exist: err: dict[str, dict[str, Any]] = { "binwalk": {