The Framelog::stwrite32 method may write less than a full u32, because the output buffer is too small (in which case it returns the number of bytes written).
That method uses copy_from_slice to write the u32, which was causing a panic when the buffer is too small.
The
Framelog::stwrite32
method may write less than a fullu32
, because the output buffer is too small (in which case it returns the number of bytes written).That method uses
copy_from_slice
to write the u32, which was causing a panic when the buffer is too small.