Home | History | Annotate | Download | only in tests
      1 #include <stdlib.h>
      2 
      3 int main(void)
      4 {
      5    int  y;
      6    int* x = malloc(sizeof(int) * 100);
      7 
      8    y = x[95];   // ok
      9    y = x[100];  // overrun
     10    y = x[-1];   // underrun
     11 
     12    return 0;
     13 }
     14