Skip to content

Sanitizers do not catch out-of-bounds pointer arithmetic #119040

Open
@davidben

Description

@davidben

Pointer arithmetic is required to stay in bounds, even if you don't use the pointer, but (as far as I can tell), Clang has no sanitizer that catches this. See https://godbolt.org/z/PE6P31fcq

I'm guessing ASan would have the easiest time catching this, since it knows where all the allocations are?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions