aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/may_dangle.rs
diff options
context:
space:
mode:
authorTobias Burnus <tburnus@baylibre.com>2025-03-31 11:44:26 +0200
committerTobias Burnus <tburnus@baylibre.com>2025-03-31 11:44:26 +0200
commitf3899e0fd3f9aa6b579a21e87b50c61ea5c448df (patch)
tree25d0a59f5954ad851150868f6f8c7029464b51b8 /gcc/testsuite/rust/compile/may_dangle.rs
parent70391e3958db791edea4e877636592de47a785e7 (diff)
downloadgcc-f3899e0fd3f9aa6b579a21e87b50c61ea5c448df.zip
gcc-f3899e0fd3f9aa6b579a21e87b50c61ea5c448df.tar.gz
gcc-f3899e0fd3f9aa6b579a21e87b50c61ea5c448df.tar.bz2
OpenMP: modify_call_for_omp_dispatch - fix invalid memory access after 'error' [PR119541]
OpenMP requires that the number of dispatch 'interop' clauses (ninterop) is less or equal to the number of declare variant 'append_args' interop objects (nappend). While 'nappend < ninterop' was diagnosed as error, the processing continues, which lead to an invalid out-of-bounds memory access. Solution: only process the first nappend 'interop' clauses. gcc/ChangeLog: PR middle-end/119541 * gimplify.cc (modify_call_for_omp_dispatch): Limit interop claues processing by the number of append_args arguments.
Diffstat (limited to 'gcc/testsuite/rust/compile/may_dangle.rs')
0 files changed, 0 insertions, 0 deletions