Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actually recognize ASan error messages #87

Open
saethlin opened this issue Oct 21, 2023 · 0 comments
Open

Actually recognize ASan error messages #87

saethlin opened this issue Oct 21, 2023 · 0 comments

Comments

@saethlin
Copy link
Owner

if line.contains("requested allocation size") {
causes.push(Cause {
kind: "requested allocation size exceeds maximum supported size".to_string(),
source_crate: None,
});
} else if let Some(kind) = line.split_whitespace().nth(2) {
causes.push(Cause {
kind: kind.to_string(),
source_crate: None,
});

ASan diagnosis only special-cases the too-large allocations. So we end up with some goofy diagnoses like UB: SEGV which should indicate clearly that this is a null pointer deref, and UB: attempting which is just the first word of "attempting double free".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant