1
1
openmpi/opal
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
..
class opal/atomic: always use C11 atomics if available 2018-09-14 10:51:05 -06:00
datatype opal/dataype: add additional interface to retrieve more details about 2018-06-21 09:25:50 -05:00
dss Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
etc Correct the comment in the default MCA param template - we do not support a param called "component_path". The correct syntax is "mca_base_component_path" 2018-01-05 08:46:44 -08:00
include opal/atomic: always use C11 atomics if available 2018-09-14 10:51:05 -06:00
mca Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
memoryhooks opal: rename opal_atomic_init to opal_atomic_lock_init 2017-08-07 14:15:11 -06:00
runtime Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
test/reachable opal: convert from strncpy() -> opal_string_copy() 2018-09-27 11:56:18 -07:00
threads opal/atomic: always use C11 atomics if available 2018-09-14 10:51:05 -06:00
tools Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
util Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
win32 opal: convert from strncpy() -> opal_string_copy() 2018-09-27 11:56:18 -07:00
common_sym_whitelist.txt opal: add code patcher framework 2016-04-13 17:16:13 -06:00
Makefile.am opal: remove generated asm code 2017-08-03 09:18:58 -06:00
win_makefile Purge whitespace from the repo 2015-06-23 20:59:57 -07:00