Skip to content

Commit

Permalink
Review: no-std
Browse files Browse the repository at this point in the history
  • Loading branch information
daladim committed Sep 20, 2021
1 parent c6b645c commit 97f06a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/read/pe/rich.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl<'data> RichHeaderInfos<'data> {
// Extract the contents of the rich header
let items_start = rich_header_start + start_sequence.len();
let items_len = rh_len - start_sequence.len() - 8;
let item_count = items_len / std::mem::size_of::<pe::MaskedRichHeaderEntry>();
let item_count = items_len / core::mem::size_of::<pe::MaskedRichHeaderEntry>();
let items =
match data.read_slice_at::<pe::MaskedRichHeaderEntry>(items_start as u64, item_count) {
Err(()) => return None,
Expand Down

0 comments on commit 97f06a9

Please sign in to comment.