Skip to content

Conversation

@ChrisDenton
Copy link
Collaborator

@ChrisDenton ChrisDenton commented Jan 6, 2025

Using transmute creates a pointer without provenance. Using an as cast instead fixes this.

Fixes: #3406

Using transmute creates a pointer without provenance. Using an `as` cast instead fixes this.
@ChrisDenton
Copy link
Collaborator Author

Note: Ideally we'd use ptr::with_exposed_provenance to make it more explicit but that won't stabilize until 1.84.

Copy link
Collaborator

@kennykerr kennykerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kennykerr kennykerr merged commit 3566fca into microsoft:master Jan 7, 2025
75 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.

Direct3D12 sample doesn't render properly in release builds

3 participants