Commit 3c7f93f
committed
Don't overwhelm the blockLength.
During the optimization process the datatype engine will merge
contiguous elements. When this happen adding two integers might result
in a "largher than int" value and the resulting datatype will be
incorrectly sized. Use size_t instead of int (this is correct because
the MPI standard mandates the block lengths to be non-negative numbers).
Thanks @albandil for finding the issue and providing a patch.
Fixes #11607.
Signed-off-by: George Bosilca <bosilca@icl.utk.edu>1 parent f881440 commit 3c7f93f
File tree
2 files changed
+2
-3
lines changed- ompi/datatype
- test/datatype
2 files changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
369 | | - | |
| 368 | + | |
370 | 369 | | |
371 | 370 | | |
372 | 371 | | |
| |||
0 commit comments