Closed hughsie closed 2 years ago
e.g.
diff --git a/uefi_r2_analyzer.py b/uefi_r2_analyzer.py
index c0c66f6..4205df8 100755
--- a/uefi_r2_analyzer.py
+++ b/uefi_r2_analyzer.py
@@ -64,7 +64,8 @@ def scan(image_path: str, rule: List[str]) -> bool:
# on linux platforms you can pass blob via shm://
# uefi_analyzer = UefiAnalyzer(blob=data)
- uefi_analyzer = UefiAnalyzer(image_path=image_path)
+ data = open(image_path, "rb").read()
+ uefi_analyzer = UefiAnalyzer(blob=data)
uefi_rules: List[UefiRule] = list()
Ignore me, sorry for the noise: installing rizin-0.3.1-1.fc36 fixed this.
Using master, this works:
but using this failed:
It doesn't produce any output... interestingly in the lvfs-website self tests I get: