1
1
Mark Allen fcf53becc3 opal_hwloc_base_cset2str() off-by-1 in its strncat()
I think the strncat() calls here need to be of the form
    strncat(str, new_str_to_add, len - strlen(new_str_to_addstr) - 1);
since in the OMPI calls len is being used as total number of bytes
in str.

strncat(dest,src,n) on the other hand is documented as writing up to
n chars from the incoming string plus 1 for the null, for n+1 total
bytes it can write.

Signed-off-by: Mark Allen <markalle@us.ibm.com>
(cherry picked from commit 30d60994d258f5f0b7c432efd284d1b6b8333faf)

Conflicts:
	opal/mca/hwloc/base/hwloc_base_util.c
2019-03-14 13:08:25 -04:00
..
2018-10-16 15:28:20 -06:00
2019-03-05 19:43:31 -05:00
2018-11-21 11:48:58 -06:00
2017-09-19 19:42:54 -07:00
2018-09-21 14:47:11 -05:00
2017-08-03 09:18:58 -06:00
2015-06-23 20:59:57 -07:00