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 412b135 commit 14be69cCopy full SHA for 14be69c
plugins/idb_import/src/lib.rs
@@ -86,6 +86,8 @@ 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
+ // TODO check if this is truly a EoF hit, `self.bv.len()` is not
90
+ // reliable, it's returning a size bigger then the original file.
91
return Ok(0);
92
}
93
let len = BinaryView::read(self.bv, buf, self.offset);
0 commit comments