Skip to content

Commit

Permalink
Merge pull request #153 from tatref/mmappath-sysv
Browse files Browse the repository at this point in the history
fix: 32bit signed int
  • Loading branch information
eminence authored Oct 31, 2021
2 parents 36b07eb + b6756cf commit 3cb30c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/process/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ impl MMapPath {
MMapPath::TStack(tid)
}
x if x.starts_with('[') && x.ends_with(']') => MMapPath::Other(x[1..x.len() - 1].to_string()),
x if x.starts_with("/SYSV") => MMapPath::Vsys(i32::from_str_radix(&x[5..13], 16)?), // 32bits as hex. /SYSVaabbccdd (deleted)
x if x.starts_with("/SYSV") => MMapPath::Vsys(u32::from_str_radix(&x[5..13], 16)? as i32), // 32bits signed hex. /SYSVaabbccdd (deleted)
x => MMapPath::Path(PathBuf::from(x)),
})
}
Expand Down

0 comments on commit 3cb30c3

Please sign in to comment.