1 Star 0 Fork 38

xinminst/criu

forked from src-openEuler/criu 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0002-Fix-crit-info-struct-unpack-error.patch 702 Bytes
一键复制 编辑 原始数据 按行查看 历史
river 提交于 2021-04-13 14:20 +08:00 . criu: add backport patch set
From be4a5e65791d18d1e26d6299e80a65324c5fc07e Mon Sep 17 00:00:00 2001
From: lingsheng <lingsheng@huawei.com>
Date: Tue, 22 Sep 2020 14:39:22 +0800
Subject: [PATCH 2/6] Fix crit info struct unpack error
---
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
index 9c8e144..c330b97 100644
--- 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)
--
1.8.3.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xinminst/criu.git
git@gitee.com:xinminst/criu.git
xinminst
criu
criu
master

搜索帮助