aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/FileManager.cpp
diff options
context:
space:
mode:
authorJonathan Peyton <jonathan.l.peyton@intel.com>2023-02-06 13:32:35 -0600
committerJonathan Peyton <jonathan.l.peyton@intel.com>2023-02-07 10:00:34 -0600
commit4ce32d2f12ec0e7a2551e251c1453d4b338cc2a7 (patch)
tree389aa599741fa4f0f51cc7cb823f1d59664bc595 /clang/lib/Basic/FileManager.cpp
parent3a80dc27ed45a43be7f18eecb7059d424b7c08d5 (diff)
downloadllvm-4ce32d2f12ec0e7a2551e251c1453d4b338cc2a7.zip
llvm-4ce32d2f12ec0e7a2551e251c1453d4b338cc2a7.tar.gz
llvm-4ce32d2f12ec0e7a2551e251c1453d4b338cc2a7.tar.bz2
[OpenMP][libomp] Remove false positive for memory sanitizer
The memory sanitizer intercepts the memcpy() call but not the direct assignment of last byte to 0. This leads the sanitizer to believe the last byte of a string based on the kmp_str_buf_t type is uninitialized. Hence, the eventual strlen() inside __kmp_env_dump() leads to an use-of-uninitialized-value warning. Using strncat() instead gives the sanitizer the information it needs. Differential Revision: https://reviews.llvm.org/D143401 Fixes #60501
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
0 files changed, 0 insertions, 0 deletions