We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8b7894 commit a76d8bbCopy full SHA for a76d8bb
tool/microkit/src/elf.rs
@@ -226,7 +226,7 @@ impl ElfFile {
226
let mut symtab_shent: Option<&ElfSectionHeader64> = None;
227
let mut shstrtab_shent: Option<&ElfSectionHeader64> = None;
228
for i in 0..hdr.shnum {
229
- let shent_start = hdr.shoff + (i * hdr.shentsize) as u64;
+ let shent_start = hdr.shoff + (i as u64 * hdr.shentsize as u64);
230
let shent_end = shent_start + hdr.shentsize as u64;
231
let shent_bytes = &bytes[shent_start as usize..shent_end as usize];
232
0 commit comments