Skip to content

Conversation

philipc
Copy link
Contributor

@philipc philipc commented Aug 28, 2025

The transmute required that the alignment of bytes was correct, but nothing checked this. Use object::pod::from_bytes which does the transmute and includes this check.

The transmute required that the alignment of bytes was correct,
but nothing checked this. Use `object::pod::from_bytes` which
does the transmute and includes this check.
@philipc
Copy link
Contributor Author

philipc commented Aug 28, 2025

This is compile tested only.

@workingjubilee
Copy link
Member

Thanks!

@workingjubilee workingjubilee merged commit a8b55f0 into rust-lang:master Sep 26, 2025
40 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