Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test for when read count exceeds total size
We cannot mark the returned usize as must use unfortunately. This is what triggered the bug in linux-loader: rust-vmm/linux-loader#125. The least we can do is to validate that when there are more bytes requested than what the reader has available, we do return the correct number of the read. Unfortunately, when this result is not used it can lead to bugs. Signed-off-by: Andreea Florescu <fandree@amazon.com>
- Loading branch information