Re: How to develop a random number generation device



On Fri, 14 Sep 2007 04:13:48 +0100, Nobody <nobody@xxxxxxxxxxx> wrote:

On Thu, 13 Sep 2007 19:06:18 -0400, krw wrote:

Nothing the OS does can prevent machine code from overrunning a buffer.

Absolute nonsense. Perhaps buffer overruns can't be prevented using
C++, but they *can* be prevented.

Not by the *OS*.

Sure it can. Not in Windows and not with C++, perhaps. An OS can
surely make it impossible to write safe code and a real OS is
required to make safe code possible.

That doesn't address the issue, which was whether the OS can
prevent buffer overruns.


I can't prevent them, but it could and should trap them and abort the
offending task, with no possibility of subsequent damage.

Under a decent OS, bad code should only hurt itself.

John

.



Relevant Pages