Skip to content

Commit

Permalink
legion: fix out-of-bounds memory access in creating replicated tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
lightsighter committed Mar 21, 2024
1 parent 4b0e746 commit fc7eb50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/legion/legion_tasks.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4068,7 +4068,7 @@ namespace Legion {
}
// Construct the collective mapping
std::vector<AddressSpaceID> spaces(output.target_processors.size()+1);
for (unsigned idx = 0; idx < spaces.size(); idx++)
for (unsigned idx = 0; idx < output.target_processors.size(); idx++)
spaces[idx] = output.target_processors[idx].address_space();
// Make sure we include our local space too
spaces.back() = runtime->address_space;
Expand Down

0 comments on commit fc7eb50

Please sign in to comment.