Skip to content

Commit

Permalink
Fix bug in copy_section_data
Browse files Browse the repository at this point in the history
  • Loading branch information
marxin authored and davidlattimore committed Aug 30, 2024
1 parent 0e304ac commit 81e2ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wild_lib/src/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl<'data> File<'data> {
let data = section.data(LittleEndian, self.data)?;

if let Some((compression, _, _)) = section.compression(LittleEndian, self.data)? {
decompress_into(compression, data, out)?;
decompress_into(compression, &data[COMPRESSION_HEADER_SIZE..], out)?;
} else {
out.copy_from_slice(data);
}
Expand Down

0 comments on commit 81e2ffa

Please sign in to comment.