Task #134937 - added.err

back to task #134937
download
Error: GCC_ANALYZER_WARNING (CWE-476):
mpich-5.0.0b1/src/include/mpir_datatype.h:489:21: warning[-Wanalyzer-null-dereference]: dereference of NULL 'array_of_starts'
mpich-5.0.0b1/src/mpi/datatype/type_create_subarray.c:21:5: note: in expansion of macro 'MPIR_Datatype_get_extent_macro'
mpich-5.0.0b1/src/include/mpiimpl.h:157: included_from: Included from here.
mpich-5.0.0b1/src/mpi/datatype/type_create_subarray.c:125:5: note: in expansion of macro 'MPIR_CHKLMEM_MALLOC'
mpich-5.0.0b1/src/mpi/datatype/type_create_subarray.c:126:5: note: in expansion of macro 'MPIR_CHKLMEM_MALLOC'
mpich-5.0.0b1/src/mpi/datatype/type_create_subarray.c: scope_hint: In function 'MPIR_Type_create_subarray'
mpich-5.0.0b1/src/mpi/datatype/type_create_subarray.c:126:5: note: in expansion of macro 'MPIR_CHKLMEM_MALLOC'
mpich-5.0.0b1/src/mpi/datatype/type_create_subarray.c:127:5: note: in expansion of macro 'MPIR_CHKLMEM_MALLOC'
mpich-5.0.0b1/src/mpi/datatype/type_create_subarray.c: scope_hint: In function 'MPIR_Type_create_subarray'
mpich-5.0.0b1/src/mpi/datatype/type_create_subarray.c:127:5: note: in expansion of macro 'MPIR_CHKLMEM_MALLOC'
mpich-5.0.0b1/src/mpi/datatype/type_create_subarray.c:21:5: note: in expansion of macro 'MPIR_Datatype_get_extent_macro'
mpich-5.0.0b1/src/mpi/datatype/type_create_subarray.c:21:5: note: in expansion of macro 'MPIR_Datatype_get_extent_macro'
mpich-5.0.0b1/src/include/mpir_datatype.h:488:13: note: in expansion of macro 'MPIR_Assert'
mpich-5.0.0b1/src/mpi/datatype/type_create_subarray.c:21:5: note: in expansion of macro 'MPIR_Datatype_get_extent_macro'
mpich-5.0.0b1/src/include/mpir_datatype.h:488:13: note: in expansion of macro 'MPIR_Assert'
mpich-5.0.0b1/src/mpi/datatype/type_create_subarray.c:21:5: note: in expansion of macro 'MPIR_Datatype_get_extent_macro'
mpich-5.0.0b1/src/mpi/datatype/type_create_subarray.c:21:5: note: in expansion of macro 'MPIR_Datatype_get_extent_macro'
#  487|                MPIR_Handle_get_ptr_indirect(a,&MPIR_Datatype_mem));       \
#  488|               MPIR_Assert(ptr != NULL);                                   \
#  489|->             extent_ = ((MPIR_Datatype *) ptr)->extent;                  \
#  490|               break;                                                      \
#  491|           case HANDLE_KIND_INVALID:                                       \