[all-commits] [llvm/llvm-project] 91ee72: [flang] Fix potential segfault in PointerAssociate...
Valentin Clement via All-commits
all-commits at lists.llvm.org
Tue Feb 28 05:01:50 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 91ee72d10e9f64c8c046115c5cdf35e08dd6f70d
https://github.com/llvm/llvm-project/commit/91ee72d10e9f64c8c046115c5cdf35e08dd6f70d
Author: Valentin Clement <clementval at gmail.com>
Date: 2023-02-28 (Tue, 28 Feb 2023)
Changed paths:
M flang/runtime/pointer.cpp
Log Message:
-----------
[flang] Fix potential segfault in PointerAssociateRemapping
The bounds descriptor passed to the function is an array of [2, newRank]
size. Update the code so the rank is retrieved from the second dimension
and not the rank of the descriptor directly as it will be 2 in any case.
Reviewed By: jeanPerier
Differential Revision: https://reviews.llvm.org/D144949
More information about the All-commits
mailing list