1 Star 0 Fork 41

yangshx/lvm2

forked from src-openEuler/lvm2 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0007-bugfix-fix-the-code-maybe-lead-to-buffer-over-bound-access.patch 342 Bytes
一键复制 编辑 原始数据 按行查看 历史
wj196 提交于 2020-07-16 14:44 +08:00 . update lvm2 version to 2.03.09-1
diff --git a/tools/command.c b/tools/command.c
index 50791b1..3270b26 100644
--- a/tools/command.c
+++ b/tools/command.c
@@ -1375,7 +1375,7 @@ static int _copy_line(char *line, int max_line, int *position)
memset(line, 0, max_line);
- while (1) {
+ while ( p < strlen(_command_input) ) {
line[i] = _command_input[p];
i++;
p++;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yangshaoxing1001/lvm2.git
git@gitee.com:yangshaoxing1001/lvm2.git
yangshaoxing1001
lvm2
lvm2
master

搜索帮助