From d1b2d29528b7794b41e66fc2136e395a02f8529b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 30 May 2024 05:59:35 +0200 Subject: Merging upstream version 1.73.0+dfsg1. Signed-off-by: Daniel Baumann --- vendor/thorin-dwp/src/package.rs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'vendor/thorin-dwp/src') diff --git a/vendor/thorin-dwp/src/package.rs b/vendor/thorin-dwp/src/package.rs index b71ae1207..719c4cab1 100644 --- a/vendor/thorin-dwp/src/package.rs +++ b/vendor/thorin-dwp/src/package.rs @@ -491,10 +491,17 @@ impl<'file> InProgressDwarfPackage<'file> { update!(debug_rnglists += self.obj.append_to_debug_rnglists(&data)); } Ok(".debug_str_offsets.dwo" | ".zdebug_str_offsets.dwo") => { - let debug_str_offsets_section = { + let (debug_str_offsets_section, debug_str_offsets_section_len) = { let data = section.compressed_data()?.decompress()?; + let len = data.len() as u64; let data_ref = sess.alloc_owned_cow(data); - gimli::DebugStrOffsets::from(gimli::EndianSlice::new(data_ref, self.endian)) + ( + gimli::DebugStrOffsets::from(gimli::EndianSlice::new( + data_ref, + self.endian, + )), + len, + ) }; let debug_str_section = @@ -509,7 +516,7 @@ impl<'file> InProgressDwarfPackage<'file> { let data = self.string_table.remap_str_offsets_section( debug_str_section, debug_str_offsets_section, - section.size(), + debug_str_offsets_section_len, self.endian, encoding, )?; -- cgit v1.2.3