Skip to content

Commit

Permalink
Loosen address regex (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
pzich authored Nov 17, 2024
1 parent 5c2ca79 commit 91f8690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ pub fn decode(bin: &[u8], dump: &str) -> ReturnType {
};

// Match everything that looks like a program address
let re = Regex::new(r"(40[0-9a-fA-F]{6})\b").unwrap();
let re = Regex::new(r"([0-9a-fA-F]{8})\b").unwrap();
for cap in re.captures_iter(dump) {
let address = u64::from_str_radix(&cap[0], 16).unwrap();
// Look for frame that contains the address
Expand Down

0 comments on commit 91f8690

Please sign in to comment.