int array[100];
int *ptr = &array[102];
Supposing that there was some way to precisely detect buffer overflow, when will this code experience a buffer overflow? Is it compile time? My research tells me no, but I'm not sure.
int array[100];
int *ptr = &array[102];
Supposing that there was some way to precisely detect buffer overflow, when will this code experience a buffer overflow? Is it compile time? My research tells me no, but I'm not sure.