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

(refactor): Replace addr_of_mut with MaybeUninit::as_mut_ptr #377

Closed
wants to merge 1 commit into from

Conversation

v-thakkar
Copy link

Use MaybeUninit::as_mut_ptr as it's a more safer option to avoid any potential bugs with respect to uninitialized memory.

Fixes #182

@v-thakkar v-thakkar marked this pull request as draft September 5, 2024 18:39
@v-thakkar v-thakkar marked this pull request as ready for review September 5, 2024 18:41
Use MaybeUninit::as_mut_ptr as it's a more safer option to
avoid any potential bugs with respect to uninitialized memory.

Signed-off-by: Vaishali Thakkar <[email protected]>
@v-thakkar v-thakkar changed the title (refactor) Replace addr_of_mut with MaybeUninit::as_mut_ptr (refactor): Replace addr_of_mut with MaybeUninit::as_mut_ptr Sep 5, 2024
@azenla
Copy link
Member

azenla commented Sep 16, 2024

Hi! I just saw this. We are restructuring this repository to make contributions and work with the Xen community a bit more feasible, so this will require updates, but thank you so much for the contribution!

@v-thakkar
Copy link
Author

v-thakkar commented Sep 16, 2024

@azenla Sure, sounds good. I'll close the PR and will open a new one once all updates to the repo are in place.

@v-thakkar v-thakkar closed this Sep 16, 2024
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.

Replace addr_of_mut with MaybeUninit::as_mut_ptr
2 participants