You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line 380 looks like UB because we're creating a mutable reference to unitialized memory. Some write method (from MaybeUninit or the raw pointer type) should be used.
Line 383 also looks like UB because we did not initialize the whole array.
Probably the simpler solution is to use a regular array and avoid usage of unsafe.
The text was updated successfully, but these errors were encountered:
nrf-usbd/src/usbd.rs
Lines 378 to 383 in cbd7ed7
Line 380 looks like UB because we're creating a mutable reference to unitialized memory. Some
write
method (fromMaybeUninit
or the raw pointer type) should be used.Line 383 also looks like UB because we did not initialize the whole array.
Probably the simpler solution is to use a regular array and avoid usage of unsafe.
The text was updated successfully, but these errors were encountered: