[all-commits] [llvm/llvm-project] e2738b: [OpenMP] Fix potential integer overflow in dynamic...

Jonathan Peyton via All-commits all-commits at lists.llvm.org
Mon Mar 8 07:43:47 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e2738b3758a9d5a6dfdc5a6768046b44a1b9f135
      https://github.com/llvm/llvm-project/commit/e2738b3758a9d5a6dfdc5a6768046b44a1b9f135
  Author: Peyton, Jonathan L <jonathan.l.peyton at intel.com>
  Date:   2021-03-08 (Mon, 08 Mar 2021)

  Changed paths:
    M openmp/runtime/src/kmp_dispatch.cpp
    A openmp/runtime/test/worksharing/for/omp_for_dynamic_large_chunk.c

  Log Message:
  -----------
  [OpenMP] Fix potential integer overflow in dynamic schedule code

Restrict the chunk_size * chunk_num to only occur for valid
chunk_nums and reimplement calculating the limit to avoid overflow.

Differential Revision: https://reviews.llvm.org/D96747




More information about the All-commits mailing list