diff --git a/src/program.rs b/src/program.rs index f2e2726..e11713d 100644 --- a/src/program.rs +++ b/src/program.rs @@ -97,7 +97,7 @@ impl Program { unsafe { core::str::from_utf8_unchecked(&raw_name[..name_len]) } }; - Section::new(name, base, len) + Section::new(name, base, unsafe { section.Misc.VirtualSize as usize }) }) .collect();