[all-commits] [llvm/llvm-project] 54f059: [OpenMP] Check loc for NULL before dereferencing it

Bryan Chan via All-commits all-commits at lists.llvm.org
Mon Jun 7 07:46:21 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 54f059c9007b48e4ff700ac587cbb137fff91fb7
      https://github.com/llvm/llvm-project/commit/54f059c9007b48e4ff700ac587cbb137fff91fb7
  Author: Bryan Chan <bryan.chan at huawei.com>
  Date:   2021-06-07 (Mon, 07 Jun 2021)

  Changed paths:
    M openmp/runtime/src/kmp_dispatch.cpp

  Log Message:
  -----------
  [OpenMP] Check loc for NULL before dereferencing it

The ident_t * argument in __kmp_get_monotonicity was being used without
a customary NULL check, causing the function to crash in a Debug build.
Release builds were not affected thanks to dead store elimination.




More information about the All-commits mailing list