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
Since RgbaImage is a struct with repr(Rust), it means that it has an unstable layout and compiler preserves the right to insert any padding bytes around the fields.
When you cast the raw pointer of it to the pointer of Vec<u8>, it could lead to incorrect data interpretation and uninitialized memory exposure since Vec<u8> expects there are continuous bytes.
The text was updated successfully, but these errors were encountered:
I consider the
gaussian_blur
have the unsound implementation in line 32silicon/src/blur.rs
Lines 23 to 33 in 7837ec8
Since
RgbaImage
is a struct withrepr(Rust)
, it means that it has an unstable layout and compiler preserves the right to insert any padding bytes around the fields.When you cast the raw pointer of it to the pointer of
Vec<u8>
, it could lead to incorrect data interpretation and uninitialized memory exposure sinceVec<u8>
expects there are continuous bytes.The text was updated successfully, but these errors were encountered: