We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent accd94c commit 8764abeCopy full SHA for 8764abe
1 file changed
src/pe/section_table.rs
@@ -84,7 +84,7 @@ impl SectionTable {
84
Ok(table)
85
}
86
87
- pub fn data<'a, 'b: 'a>(&'a self, pe_bytes: &'b [u8]) -> error::Result<Option<Cow<[u8]>>> {
+ pub fn data<'a, 'b: 'a>(&'a self, pe_bytes: &'b [u8]) -> error::Result<Option<Cow<'a, [u8]>>> {
88
let section_start: usize = self.pointer_to_raw_data.try_into().map_err(|_| {
89
Error::Malformed(format!("Virtual address cannot fit in platform `usize`"))
90
})?;
0 commit comments