12 Star 0 Fork 11

src-openEuler / opa-psm2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fix-stringop-truncation-build-error.patch 447 Bytes
一键复制 编辑 原始数据 按行查看 历史
root 提交于 2020-07-02 16:14 . fix build error
diff -Naur opa-psm2-PSM2_10.3.58/psm_ep.c opa-psm2-PSM2_10.3.58_new/psm_ep.c
--- opa-psm2-PSM2_10.3.58/psm_ep.c 2018-05-08 03:44:29.000000000 +0800
+++ opa-psm2-PSM2_10.3.58_new/psm_ep.c 2020-07-01 17:09:40.229405374 +0800
@@ -1495,8 +1495,7 @@
b_new = (char *)devstr;
e = b_new + len;
- strncpy(e, devstring, len - 1);
- e[len - 1] = '\0';
+ strncpy(e, devstring, len);
ee = e + len;
i = 0;
while (e < ee && *e && i < PTL_MAX_INIT) {
1
https://gitee.com/src-openeuler/opa-psm2.git
git@gitee.com:src-openeuler/opa-psm2.git
src-openeuler
opa-psm2
opa-psm2
master

搜索帮助