We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d4fcf6 commit 1febe6fCopy full SHA for 1febe6f
plugins/idb_import/src/lib.rs
@@ -86,10 +86,9 @@ struct BinaryViewReader<'a> {
86
impl std::io::Read for BinaryViewReader<'_> {
87
fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> {
88
if !self.bv.offset_valid(self.offset) {
89
- return Err(std::io::Error::new(
90
- std::io::ErrorKind::UnexpectedEof,
91
- "Unable to read at the current offset in BinaryViewReader",
92
- ));
+ // TODO check if this is truly a EoF hit, `self.bv.len()` is not
+ // reliable, it's returning a size bigger then the original file.
+ return Ok(0);
93
}
94
let len = BinaryView::read(self.bv, buf, self.offset);
95
self.offset += u64::try_from(len).unwrap();
0 commit comments