#7 Panic in copy_from_slice

Opened by pmeunier on Sep 15, 2021, 11:05 AM
// pmeunier on Sep 15, 2021, 11:05 AM

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.

pmeunier
~ pmeunier pushed a change on Sep 15, 2021, 11:05 AM
· pmeunier · on Sep 15, 2021, 11:00 AM
FOFMWK53746RHCIMNP4G7NBJ3Z2PEI4A2XP5ZEEJOIRQNNEEL2FQC