Prevent malicious descriptor stacking for scalar components.
authorAndre Vehreschild <vehre@gcc.gnu.org>
Fri, 28 Jan 2022 08:20:23 +0000 (09:20 +0100)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Fri, 28 Jan 2022 08:20:23 +0000 (09:20 +0100)
commitc9c48ab7bad9fe5e096076e56a60ce0a5a2b65f7
tree556bc3be4bf54a0e2e311ffc587658542bbb0c73
parent4d2efec9f229c2e2e7cb6c3f06beb4c3e9d244a1
Prevent malicious descriptor stacking for scalar components.

gcc/fortran/ChangeLog:

PR fortran/103790
* trans-array.cc (structure_alloc_comps): Prevent descriptor
stacking for non-array data; do not broadcast caf-tokens.
* trans-intrinsic.cc (conv_co_collective): Prevent generation
of unused descriptor.

gcc/testsuite/ChangeLog:

PR fortran/103790
* gfortran.dg/coarray_collectives_18.f90: New test.
gcc/fortran/trans-array.cc
gcc/fortran/trans-intrinsic.cc
gcc/testsuite/gfortran.dg/coarray_collectives_18.f90 [new file with mode: 0644]