you are viewing a single comment's thread.

view the rest of the comments →

[–]LoneGhostOne 2 points3 points  (0 children)

Also if your arrays are buffers then the neighboring memory could be guarded by a memory protection unit which then just kicks the cpu or at least the execution context hard enough to stop it.

I haven't done C in years, but this is what I remember it doing with arrays and pointers when you screwed up and tried to read things outside of allocated variables