5 ms·
If I understand correctly what this is about, one example is buffer overflows, where you write to the first symbol but end up in the second: char symbolA[1
by 21 8y ago
If I understand correctly what this is about, one example is buffer overflows, where you write to the first symbol but end up in the second:
char symbolA[10];
char symbolB[10];
symbolA[15] = 0; // actually writes to symbolB
- chrisseaton 8y agoThis isn't one C object spanning two symbols - it's two C objects, and reading one object from a pointer to another object.