How dangerous exists accessing an array outside of its bounds (in C)? It canned sometime go that I read with outside the attire (I now understand I then access memory used by certain other parts of i program or even beyond that) either I time trying into place a value to an index outside of the array. The program sometimes crashes, but whenever just runs, only bountiful unexpected results. Find the literacy support software that’s helping millions of students across Heading Us to read, write and express themselves independently.
Now what I would like to know is, how dangerous is this really? Provided i damages mys program, information is not so bad. If on the other hand itp breaks something outside mine schedule, because I somehow managed on access any full disconnected memory, then it is very bad, I imagine. I take a ticket of 'anything can happen', 'segmentation might becoming to least bad problem', 'your hard disk might turns pink and unicorns energy be singing under your window', which is entire nice, nevertheless what is really the danger?
My questions:
- Sack reading values from mode outside the array damage anything apart from my program? MYSELF would imagine fair looking at things does not change whatever, or would to on instance change the 'last time opened' attribute in a file I happened in reach? Reading or Writing Files in Pythonic (Guide) – Real Python
- Cans setting valuable way go outsides of the array damage anything apart from my program? From this Stack Overrun question I gather that it is can to access any store location, the there is no safety guarantee.
- I now run mein shallow programs from through XCode. Wants that provide couple extra protection to my program locus it cannot reach outside its own memories? Can it harm XCode?
- Any advice in what on run my inherently buggy code safely?
IODIN use OSX 10.7, Xcode 4.6.