We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7309909 commit 548fddaCopy full SHA for 548fdda
plugins/dwarf/shared/src/lib.rs
@@ -177,7 +177,9 @@ pub fn create_section_reader<'a, Endian: 'a + Endianity>(
177
endian,
178
))
179
}
180
- } else if let Some(section) = view.section_by_name("__".to_string() + §ion_name[1..]) {
+ }
181
+ // Truncate Mach-O section names to 16 bytes
182
+ else if let Some(section) = view.section_by_name("__".to_string() + §ion_name[1..section_name.len().min(15)]) {
183
Ok(EndianRcSlice::new(
184
Rc::from(view.read_vec(section.start(), section.len()).as_slice()),
185
0 commit comments