Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix : Fix flexible array member allocation #649

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

arunkarthik-akkart
Copy link
Contributor

Corrected allocation of nccl_net_ofi_schedule_t to account for flexible array member. The previous implementation did not allocate enough memory for the flexible array xfer_info elements, leading to potential out-of-bounds access.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Corrected allocation of `nccl_net_ofi_schedule_t` to account for
flexible array member. The previous implementation did not allocate
enough memory for the flexible array `xfer_info` elements, leading to
potential out-of-bounds access.
@aws-nslick
Copy link
Contributor

nit on the commit message, it was allocating more memory than necessary (sizeof(xfer_info) > sizeof(schedule)), so can't really cause an illegal access. There's just unintentional wasted space.

@arunkarthik-akkart arunkarthik-akkart merged commit c994f22 into aws:master Oct 7, 2024
30 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants