2021-04-13 14:20:56 +08:00
|
|
|
From be4a5e65791d18d1e26d6299e80a65324c5fc07e Mon Sep 17 00:00:00 2001
|
2020-09-22 15:19:06 +08:00
|
|
|
From: lingsheng <lingsheng@huawei.com>
|
|
|
|
|
Date: Tue, 22 Sep 2020 14:39:22 +0800
|
2021-04-13 14:20:56 +08:00
|
|
|
Subject: [PATCH 2/6] Fix crit info struct unpack error
|
2020-09-22 15:19:06 +08:00
|
|
|
|
|
|
|
|
---
|
|
|
|
|
lib/py/images/images.py | 2 +-
|
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
|
|
diff --git a/lib/py/images/images.py b/lib/py/images/images.py
|
2021-04-13 14:20:56 +08:00
|
|
|
index 9c8e144..c330b97 100644
|
2020-09-22 15:19:06 +08:00
|
|
|
--- a/lib/py/images/images.py
|
|
|
|
|
+++ b/lib/py/images/images.py
|
|
|
|
|
@@ -171,7 +171,7 @@ class entry_handler:
|
|
|
|
|
|
|
|
|
|
while True:
|
|
|
|
|
buf = f.read(4)
|
|
|
|
|
- if buf == '':
|
|
|
|
|
+ if len(buf) == 0:
|
|
|
|
|
break
|
|
|
|
|
size, = struct.unpack('i', buf)
|
|
|
|
|
f.seek(size, 1)
|
|
|
|
|
--
|
2021-04-13 14:20:56 +08:00
|
|
|
1.8.3.1
|
2020-09-22 15:19:06 +08:00
|
|
|
|