Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
abbiecnt committed Aug 28, 2024
1 parent 0d3957f commit efc6948
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,12 @@ impl Program {

unsafe { core::str::from_utf8_unchecked(&raw_name[..name_len]) }
};

let section_base = unsafe {
Base::new_unchecked(section.VirtualAddress as *mut u8)
};

Section::new(name, base, unsafe { section.Misc.VirtualSize as usize })
Section::new(name, section_base, unsafe { section.Misc.VirtualSize as usize })
})
.collect();

Expand Down

0 comments on commit efc6948

Please sign in to comment.