Skip to content

Actually recognize ASan error messages #87

Description

@saethlin

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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions