I was snarky because you didn't give your reasoning before.
Languages like Perl and Lisp that handle memory allocation themselves (a hallmark of which is built-in garbage collection) don't have buffer overruns precisely because it isn't left to the user to do range checks. Dumping in more data than expected to a routine might result in a greater allocation of memory, or an exception, or some other defined behavior, but what it's not going to do is run over the end of an allocated buffer and alter a code segment, or a return address on the stack. Data will not inadvertently be treated as code or a pointer to code.
But how is that related to separating the cabin from the passenger space on planes? (So that you totally don't even have a door between the two, I presume? And then we don't need checks in the airports?)
Range checks are all right, but those are not about separating the data from the code, and automatic memory management is not about separating the data from the code.
I don't know, I feel that the whole thing might seem to make some sense at a casual glance, but if you try to make sense of it, things just don't connect.
2
u/ngroot Mar 11 '13
I'd try again tomorrow.