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 cfe9c26 commit e370f79Copy full SHA for e370f79
src/pe/load_config.rs
@@ -336,8 +336,8 @@ impl LoadConfigData {
336
dd.virtual_address
337
))
338
})?;
339
- let bytes = bytes[offset..]
340
- .pread_with::<&[u8]>(0, dd.size as usize)
+ let bytes = bytes
+ .pread_with::<&[u8]>(offset, dd.size as usize)
341
.map_err(|_| {
342
error::Error::Malformed(format!(
343
"load config offset {:#x} and size {:#x} exceeds the bounds of the bytes size {:#x}",
0 commit comments