[all-commits] [llvm/llvm-project] 917f84: [OpenMP] libomp cleanup: add checks of bad memory ...
Andrey Churbanov via All-commits
all-commits at lists.llvm.org
Mon Jul 20 14:13:22 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 917f8421591d2cc53c48ebd17d88b0dd3255aa2c
https://github.com/llvm/llvm-project/commit/917f8421591d2cc53c48ebd17d88b0dd3255aa2c
Author: AndreyChurbanov <andrey.churbanov at intel.com>
Date: 2020-07-21 (Tue, 21 Jul 2020)
Changed paths:
M openmp/runtime/src/kmp_itt.inl
M openmp/runtime/src/kmp_runtime.cpp
M openmp/runtime/src/kmp_sched.cpp
M openmp/runtime/src/kmp_threadprivate.cpp
Log Message:
-----------
[OpenMP] libomp cleanup: add checks of bad memory access
Add check of frm to prevent array out-of-bound access;
add check of new_nproc to prevent access of unallocated hot_teams array;
add check of location info pointer to prevent NULL dereference;
add check of d_tn pointer to prevent NULL dereference in release build.
These checks make static analyzers happier.
This is second part of the patch from https://reviews.llvm.org/D84062.
More information about the All-commits
mailing list