-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
Why does the option -fno-sanitize-address-use-after-scope
not take effect?
#77047
Comments
@llvm/issue-subscribers-clang-codegen Author: None (Zhenhang1213)
`void foo(int *x) {
*x = 0;
}
int main() { |
-fno-sanitize-address-use-after-scope
not take effect?
Your question is not clear, can you explain in more detail what you are asking. |
I found clang using this option, the assembly was still the call asan_report_load function,but gcc doesn‘t |
Neither asan-use-after-scope nor asan-use-after-return controls whether accesses to a local variable For future issues, consider adding the exact clang command line. |
ok,but I have another question, so what scenario is those options generally used for? Don't they detect the return value ? |
Now StackSafetyAnalysis is the default, this variable in question is no longer instrumented. I think neither If
When the instrumentation decides to create a fake stack frame, it allocates one using I am curious why GCC |
I get it, but I find disable __asan_option_detect_stack_use_after_return doesnot work in gcc or clang。Asan still reports __asan_report_load4。 |
https://godbolt.org/z/Yof6d6EYb
The text was updated successfully, but these errors were encountered: