Check length of destination buffer in `FifoData::copy_bits_to`.
The `copy_bits_to` function now returns a `Result` instead of a plain `u8`. Apparently `idx + len` can in some circumstance be too large and result in a panic. The reason for this hasn't been determined yet. For now, added a check to prevent the panic.
Loading
Please register or sign in to comment