Skip to content

Commit

Permalink
Fix heap buffer overflow when running simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
HeRaNO authored Nov 8, 2024
1 parent 16b21a5 commit f9484d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions astra-sim-alibabacloud/astra-sim/system/MockNcclGroup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2035,7 +2035,7 @@ namespace MockNccl {
q.push(current->right);
}
}
return node2treenode[(nodes[rank2index[root->node]+1]) % nodes.size()];
return node2treenode[nodes[(rank2index[root->node]+1) % nodes.size()]];
}

ncclInfo* MockNcclGroup::get_algo_proto_info(
Expand Down Expand Up @@ -2102,4 +2102,4 @@ namespace MockNccl {
return info;
}
}
}
}

0 comments on commit f9484d9

Please sign in to comment.