diff options
author | Ilya Verbin <ilya.verbin@intel.com> | 2015-10-08 19:04:43 +0000 |
---|---|---|
committer | Ilya Verbin <iverbin@gcc.gnu.org> | 2015-10-08 19:04:43 +0000 |
commit | 6fd2e66a091023edaf55d874189ab63ec8568398 (patch) | |
tree | cc473b0ce992a6b6a8004d8e0c64c388b612ddd0 /gcc/tree-stdarg.c | |
parent | bc8642d6cef0782bc3181ade2ba577e53bcefc15 (diff) | |
download | gcc-6fd2e66a091023edaf55d874189ab63ec8568398.zip gcc-6fd2e66a091023edaf55d874189ab63ec8568398.tar.gz gcc-6fd2e66a091023edaf55d874189ab63ec8568398.tar.bz2 |
liboffloadmic: Add missed checks for malloc and strdup return values
liboffloadmic/
* runtime/offload_engine.cpp (Engine::init_process): Use strdup instead
of sizeof+malloc+sprintf, check for return value.
* runtime/offload_env.cpp (MicEnvVar::get_env_var_kind): Check for
strdup return value.
* runtime/offload_host.cpp (__offload_init_library_once): Check for
strdup return value. Fix size calculation of COI_HOST_THREAD_AFFINITY.
* runtime/emulator/coi_device.cpp (COIProcessWaitForShutdown): Check for
malloc return value.
From-SVN: r228622
Diffstat (limited to 'gcc/tree-stdarg.c')
0 files changed, 0 insertions, 0 deletions