Skip to content

Commit 4b14dc0

Browse files
committed
chore: format pickle scanner
1 parent 51ac4d2 commit 4b14dc0

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

modelaudit/scanners/pickle_scanner.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2042,8 +2042,11 @@ def _analyze_cve_patterns(self, data: bytes, result: ScanResult, context_path: s
20422042

20432043
# Fallback heuristic for CVE-2020-13092 if analyzer missed it (e.g., partial pickle bytes)
20442044
content_lower = content_str.lower()
2045-
if not cve_attributions and "joblib" in content_lower and "__reduce__" in content_lower and (
2046-
"os.system" in content_lower or "subprocess" in content_lower
2045+
if (
2046+
not cve_attributions
2047+
and "joblib" in content_lower
2048+
and "__reduce__" in content_lower
2049+
and ("os.system" in content_lower or "subprocess" in content_lower)
20472050
):
20482051
from modelaudit.detectors.cve_patterns import CVEAttribution
20492052

0 commit comments

Comments
 (0)