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 d676363 commit a4c9d2dCopy full SHA for a4c9d2d
libafl/src/observers/stacktrace.rs
@@ -206,15 +206,10 @@ impl ASANBacktraceObserver {
206
/// parse ASAN error output emited by the target command and compute the hash
207
pub fn parse_asan_output(&mut self, output: &str) {
208
let mut hash = 0;
209
- let matcher = Regex::new("\\s*#[0-9]*\\s0x[0-9a-f]*\\sin\\s(.*)").unwrap();
+ let matcher = Regex::new("\\s*#[0-9]*\\s0x([0-9a-f]*)\\s.*").unwrap();
210
matcher.captures_iter(output).for_each(|m| {
211
let g = m.get(1).unwrap();
212
- hash ^= g.as_str().parse::<u64>().unwrap();
213
- println!(
214
- ">> {} {:#x}",
215
- g.as_str(),
216
- g.as_str().parse::<u64>().unwrap()
217
- );
+ hash ^= u64::from_str_radix(g.as_str(), 16).unwrap();
218
});
219
self.update_hash(hash);
220
}
0 commit comments