This method will write arbitrary, user controlled bytes into a slice of T: Copy. This can lead to invalid instances of T to be returned. Same reason as rgb but without the 'static bound so a little different. This can be used to decode scanlines into a Vec<&'static u8> or something along those lines and dereference some arbitrary memory with a crafted input file. No writable variant this time.
This method will write arbitrary, user controlled bytes into a slice of
T: Copy
. This can lead to invalid instances ofT
to be returned. Same reason asrgb
but without the'static
bound so a little different. This can be used to decode scanlines into aVec<&'static u8>
or something along those lines and dereference some arbitrary memory with a crafted input file. No writable variant this time.