You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
void f(void g(void*, void*)) {
int x = 2;
unsigned long long y = 0x8000000000000000;
int a[2][2];
int (*aa)[x] = a;
g(&aa[y], aa+y);
}
void g(void*, void*){}
int main(){ f(g); }
Compiling with -fsanitize=pointer-overflow, no error is triggered by the resulting program. It should trigger on the subscripting/pointer arithmetic (like it does with a constant array, or if the offfset is 0x4000000000000000).
The text was updated successfully, but these errors were encountered:
Testcase:
Compiling with -fsanitize=pointer-overflow, no error is triggered by the resulting program. It should trigger on the subscripting/pointer arithmetic (like it does with a constant array, or if the offfset is 0x4000000000000000).
The text was updated successfully, but these errors were encountered: