Skip to content

UseAfterReturn Wiki : Enabled By Default in GCC 13 (+ Clang 15)? #1735

Open
@AE1020

Description

@AE1020

I observed that a program which depended on stack addresses on x86 growing downward stopped working in address sanitizer with GCC 13.

But if I do:

 export ASAN_OPTIONS=detect_stack_use_after_return=0

...then it works.

So it seems that UseAfterReturn is enabled by default in GCC 13. But the wiki says: "AddressSanitizer currently does not attempt to detect these bugs by default, only with an additional flag run-time: ASAN_OPTIONS=detect_stack_use_after_return=1"

https://github.com/google/sanitizers/wiki/AddressSanitizerUseAfterReturn

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions