https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117959
Bug ID: 117959 Summary: Address Sanitizer misses 'global-buffer-overflow' for a[-1] Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: 652023330028 at smail dot nju.edu.cn CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org Target Milestone: --- For the following code (https://godbolt.org/z/4zrPdT777), GCC's ASan seems to have missed 'global-buffer-overflow' (a[-1] at line 4): int a[1]; int b; int main() { b=a[-1]; } There is no report from AddressSanitizer.