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

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

Open
AE1020 opened this issue Mar 19, 2024 · 0 comments
Open

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

AE1020 opened this issue Mar 19, 2024 · 0 comments

Comments

@AE1020
Copy link

AE1020 commented Mar 19, 2024

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

@AE1020 AE1020 changed the title UseAfterReturn Wiki Update to Say Enabled By Default in GCC 13 (+ Clang 15)? UseAfterReturn Wiki : Enabled By Default in GCC 13 (+ Clang 15)? Mar 19, 2024
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