diff --git a/fix-stringop-truncation-build-error.patch b/fix-stringop-truncation-build-error.patch new file mode 100644 index 0000000..46f5d47 --- /dev/null +++ b/fix-stringop-truncation-build-error.patch @@ -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) { diff --git a/infinipath-psm.spec b/infinipath-psm.spec index 603181a..c18916b 100644 --- a/infinipath-psm.spec +++ b/infinipath-psm.spec @@ -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 - 3.3-10 +- Fix stringop-truncation build error + * Mon Mar 16 2020 Ling Yang - 3.3-9 - Fixed URL