1
1
openmpi/opal/mca/dl/dlopen
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
..
configure.m4 dl/dlopen: add libs to wrapper LIBS 2017-04-15 09:30:18 -07:00
dl_dlopen_component.c opal: use C99 subobject naming for component initialization 2015-04-18 10:29:58 -06:00
dl_dlopen_module.c Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
dl_dlopen.h dlopen: simple dl component based on POSIX dlopen 2015-03-09 08:16:55 -07:00
Makefile.am dl: need to use LIBADD, not LIBS 2015-03-12 15:01:14 -07:00