We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Here, a packet is filled by bytes from a message:
midir/src/backend/winmm/mod.rs
Lines 509 to 513 in db24d55
This is undefined behaviour, because the address of an immutable u32 is taken and cast to a *mut u8, which is then written to in an unsafe block.
u32
*mut u8
unsafe
I have fixes ready in #136 but these are part of a rather large patchset, so if you like I can send a small patch ahead, too.
The text was updated successfully, but these errors were encountered:
Here's a playground which you can use with Miri to see that it's actually undefined behaviour: playground link
Sorry, something went wrong.
Sorry, I have somehow missed this PR! I will probably just merge #136 eventually (after #135 and a rebase), I don't think a separate PR is necessary.
OK. I just did this PR because I wasn't sure you wanted to have the large blob of changes in #136 .
No branches or pull requests
Here, a packet is filled by bytes from a message:
midir/src/backend/winmm/mod.rs
Lines 509 to 513 in db24d55
This is undefined behaviour, because the address of an immutable
u32
is taken and cast to a*mut u8
, which is then written to in anunsafe
block.I have fixes ready in #136 but these are part of a rather large patchset, so if you like I can send a small patch ahead, too.
The text was updated successfully, but these errors were encountered: