Skip to content

[feature request] setjmp sanitizer #110764

Open
@SoniEx2

Description

@SoniEx2

It is UB to read local variables after a call to setjmp returns, if those variables have been modified between setjmp and longjmp, unless they're marked as volatile. We'd like to see a sanitizer that detects this, as part of -fsanitize=undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    compiler-rt:ubsanUndefined behavior sanitizerenhancementImproving things as opposed to bug fixing, e.g. new or missing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions