This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix potential segfault in PointerAssociateRemapping
ClosedPublic

Authored by clementval on Feb 28 2023, 2:28 AM.

Details

Summary

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.

Diff Detail

Event Timeline

clementval created this revision.Feb 28 2023, 2:28 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 28 2023, 2:28 AM
Herald added a subscriber: sunshaoce. · View Herald Transcript
clementval requested review of this revision.Feb 28 2023, 2:28 AM
This revision is now accepted and ready to land.Feb 28 2023, 4:17 AM