From fc7eb509fd4ae052b6d0332f414ed8d0d65329ea Mon Sep 17 00:00:00 2001 From: Mike Date: Wed, 20 Mar 2024 21:53:29 -0700 Subject: [PATCH] legion: fix out-of-bounds memory access in creating replicated tasks --- runtime/legion/legion_tasks.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/legion/legion_tasks.cc b/runtime/legion/legion_tasks.cc index dc3f63486b..050d348548 100644 --- a/runtime/legion/legion_tasks.cc +++ b/runtime/legion/legion_tasks.cc @@ -4068,7 +4068,7 @@ namespace Legion { } // Construct the collective mapping std::vector 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;