- 
                Notifications
    
You must be signed in to change notification settings  - Fork 15.1k
 
Closed
Labels
compiler-rt:asanAddress sanitizerAddress sanitizerfalse-negativeWarning doesn't fire when it shouldWarning doesn't fire when it shouldquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!
Description
Testcase:
int a[];
int b[7][10][3];
int main() {
  int *d = &a[8];
  *d = 0;
}I met this case when I reduced the miscompilation cases with creduce and sanitizers. Both GCC and Clang treat a as a single-element array.
However, GCC sanitizer reports such a kind of out-of-bounds access, while Clang doesn't.
Godbolt link: https://godbolt.org/z/rhdnaaTf9
Metadata
Metadata
Assignees
Labels
compiler-rt:asanAddress sanitizerAddress sanitizerfalse-negativeWarning doesn't fire when it shouldWarning doesn't fire when it shouldquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!