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.
2 parents 7008740 + 962ac39 commit 55369a2Copy full SHA for 55369a2
src/symbolize/gimli/xcoff.rs
@@ -64,13 +64,7 @@ pub fn parse_xcoff(data: &[u8]) -> Option<Image> {
64
let header = Xcoff::parse(data, &mut offset).ok()?;
65
let _ = header.aux_header(data, &mut offset).ok()?;
66
let sections = header.sections(data, &mut offset).ok()?;
67
- if let Some(section) = sections.iter().find(|s| {
68
- if let Ok(name) = str::from_utf8(&s.s_name()[0..5]) {
69
- name == ".text"
70
- } else {
71
- false
72
- }
73
- }) {
+ if let Some(section) = sections.iter().find(|s| s.s_name().get(0..5) == b".text") {
74
Some(Image {
75
offset: section.s_scnptr() as usize,
76
base: section.s_paddr() as u64,
0 commit comments