Commit b8b9546
committed
Fix buffer overflow in get_package_rank
The number of local peers does not include the own rank but the own rank
is still written to the array which means an out-of-bounds write
corrupting the stack.
Increase the array size by that missing rank (i.e. +1)
Fixes open-mpi#9018
Signed-off-by: Alexander Grund <Flamefire@users.noreply.github.com>1 parent 2985b80 commit b8b9546
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
| 308 | + | |
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| |||
0 commit comments