1
1
openmpi/opal/mca
Brian Barrett e9e4d2a4bc Handle asprintf errors with opal_asprintf wrapper
The Open MPI code base assumed that asprintf always behaved like
the FreeBSD variant, where ptr is set to NULL on error.  However,
the C standard (and Linux) only guarantee that the return code will
be -1 on error and leave ptr undefined.  Rather than fix all the
usage in the code, we use opal_asprintf() wrapper instead, which
guarantees the BSD-like behavior of ptr always being set to NULL.
In addition to being correct, this will fix many, many warnings
in the Open MPI code base.

Signed-off-by: Brian Barrett <bbarrett@amazon.com>
2018-10-08 16:43:53 -07:00
..
allocator mca: Dynamic components link against project lib 2017-08-24 11:56:16 -04:00
backtrace stacktrace: Add flexibility in stacktrace ouptut 2017-01-26 11:55:32 -06:00
base Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
btl Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
common Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
compress Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
crs Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
dl Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
event Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
hwloc Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
if Merge pull request #5786 from jsquyres/pr/string-madness 2018-10-04 16:12:46 -05:00
installdirs Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
memchecker mca: Dynamic components link against project lib 2017-08-24 11:56:16 -04:00
memcpy Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
memory opal: Disable memory patcher component on MacOS 2018-10-02 13:35:15 -04:00
mpool Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
patcher misc: compiler warning fixes 2018-09-15 06:04:13 -07:00
pmix Remove build product - fix autogen.pl mode 2018-10-05 13:38:39 -07:00
pstat opal: convert from strncpy() -> opal_string_copy() 2018-09-27 11:56:18 -07:00
rcache opal: convert from strncpy() -> opal_string_copy() 2018-09-27 11:56:18 -07:00
reachable opal: convert from strncpy() -> opal_string_copy() 2018-09-27 11:56:18 -07:00
shmem opal: convert from strncpy() -> opal_string_copy() 2018-09-27 11:56:18 -07:00
timer Get x86 TSC frequency from bogomips 2017-07-12 17:31:25 -03:00
Makefile.am Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
mca.h mca/base: enforce max string lengths 2018-09-05 08:42:00 -07:00