Skip to content
Commit 37fc4f31 authored by Jonas Spanoghe's avatar Jonas Spanoghe
Browse files

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.
parent ccefe259
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment