Skip to content

32-bit error in comex/src-mpi3/comex.c #388

@dl1ycf

Description

@dl1ycf

In this file, in function comex_malloc(), there is

int tsize;

if (size > 0) {
  tsize = size;
} else {
  tsize = 8;
}

MPI_Alloc_mem(tsize,MPI_INFO_NULL,&reg_entries[comm_rank].buf);

so "tsize" should be size_t or even better MPI_Aint. With the code as is, I see negative
values for tsize, obviously stemming from 32-bit overflows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions