From 8052f9338c79bbfd3a5021ef1d7b540e9bca6433 Mon Sep 17 00:00:00 2001 From: abdul-khaliq-khalid Date: Sun, 19 Jul 2026 15:02:53 +0530 Subject: [PATCH] propagate check_magic_bytes through bz2/lzma/gzip archive scans --- saferpickle.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/saferpickle.py b/saferpickle.py index ef29938..a8c834b 100644 --- a/saferpickle.py +++ b/saferpickle.py @@ -1122,6 +1122,7 @@ def _extract_and_scan_archive( force_scan=force_scan, recursion_depth=recursion_depth + 1, fail_fast=fail_fast, + check_magic_bytes=check_magic_bytes, ) _merge_scores(all_scores, scores) @@ -1132,6 +1133,7 @@ def _extract_and_scan_archive( force_scan=force_scan, recursion_depth=recursion_depth + 1, fail_fast=fail_fast, + check_magic_bytes=check_magic_bytes, ) _merge_scores(all_scores, scores) @@ -1142,6 +1144,7 @@ def _extract_and_scan_archive( force_scan=force_scan, recursion_depth=recursion_depth + 1, fail_fast=fail_fast, + check_magic_bytes=check_magic_bytes, ) _merge_scores(all_scores, scores)