Restrict the chunk_size * chunk_num to only occur for valid chunk_nums and reimplement calculating the limit to avoid overflow.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D96747
[OpenMP] Fix potential integer overflow in dynamic schedule code ClosedPublic Authored by jlpeyton on Feb 15 2021, 9:45 PM.
Details Summary Restrict the chunk_size * chunk_num to only occur for valid chunk_nums and reimplement calculating the limit to avoid overflow.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Feb 27 2021, 11:38 AM This revision was landed with ongoing or failed builds.Mar 8 2021, 7:43 AM Closed by commit rGe2738b3758a9: [OpenMP] Fix potential integer overflow in dynamic schedule code (authored by jlpeyton). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 329012 openmp/runtime/src/kmp_dispatch.cpp
openmp/runtime/test/worksharing/for/omp_for_dynamic_large_chunk.c
|