Maja Kądziołka
Maja Kądziołka
Hi! You have made a good piece of software! I feel like I'm currently stretching it to its limit, but it's holding up pretty well. I'm scripting many animations in...
Found this testcase in a random unmerged branch of mine. Looks like I wrote it as part of my work on rust-lang/rust#138961, and then forgot to submit it when plans...
```rust use std::mem::transmute; fn main() { let r: &&u32 = unsafe { let x = 42; transmute(&&x) }; // no UB detected let f = || { let _ =...
`claim_clipboard_ownership`, as well as `respond_to_clipboard_request` perform unsynchronized accesses on mutable statics: https://github.com/not-fl3/miniquad/blob/cccea681683bec392b890e11d0c5f4b7795ffd36/src/native/linux_x11/clipboard.rs#L130-L149 This means that `X11Clipboard::set` is not threadsafe: https://github.com/not-fl3/miniquad/blob/cccea681683bec392b890e11d0c5f4b7795ffd36/src/native/linux_x11/clipboard.rs#L229-L242 Nevertheless, `X11Clipboard` explicitly implements `Send` and `Sync`: https://github.com/not-fl3/miniquad/blob/cccea681683bec392b890e11d0c5f4b7795ffd36/src/native/linux_x11/clipboard.rs#L217-L218 Moreover, removing...
In the Windows implementation of `get_raw_clipboard`, `GlobalLock` is called without a corresponding `GlobalUnlock`: https://github.com/not-fl3/miniquad/blob/cccea681683bec392b890e11d0c5f4b7795ffd36/src/native/windows/clipboard.rs#L44-L59 According to the WinAPI docs, this is wrong: > Each successful call that a process makes...