fix build error
This commit is contained in:
parent
f6083867e8
commit
a245cb8ef6
13
fix-stringop-truncation-build-error.patch
Normal file
13
fix-stringop-truncation-build-error.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff -Naur psm-4abbc60/psm_ep.c psm-4abbc60-edit/psm_ep.c
|
||||
--- psm-4abbc60/psm_ep.c 2020-07-02 14:18:23.738500086 +0800
|
||||
+++ psm-4abbc60-edit/psm_ep.c 2020-07-02 14:22:39.097969891 +0800
|
||||
@@ -1349,8 +1349,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,6 +1,6 @@
|
||||
Name: infinipath-psm
|
||||
Version: 3.3
|
||||
Release: 9
|
||||
Release: 10
|
||||
License: GPLv2 or BSD
|
||||
Summary: Libraries for Intel Performance Scaled Messaging
|
||||
URL: https://github.com/01org/psm
|
||||
@ -25,6 +25,8 @@ Patch0004: 0001-Include-sysmacros.h.patch
|
||||
Patch0005: 0001-Extend-buffer-for-uvalue-and-pvalue.patch
|
||||
# Extend fdesc array
|
||||
Patch0006: extend-fdesc-array.patch
|
||||
# Fix stringop-truncation build error
|
||||
Patch0007: fix-stringop-truncation-build-error.patch
|
||||
|
||||
%description
|
||||
PSM API is Intel's low-level user-level communications interface for the True Scale family of products.
|
||||
@ -76,6 +78,9 @@ install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/udev/rules.d/60-ipath.rule
|
||||
%{_includedir}/{psm.h,psm_mq.h}
|
||||
|
||||
%changelog
|
||||
* Thu Jul 02 2020 senlin <xiasenlin1@huawei.com> - 3.3-10
|
||||
- Fix stringop-truncation build error
|
||||
|
||||
* Mon Mar 16 2020 Ling Yang <lingyang2@huawei.com> - 3.3-9
|
||||
- Fixed URL
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user