Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: LibWhacker
they might be able to send a sequence of signals that would cause a memory buffer to overflow and perhaps allow arbitrary code execution.

buffer overflows come from poor assumptions about the data. For example allocating 256 bytes of memory but trying to load a text string into it until you hit a null character, even if that is more than 256. Since we don't expect any data format from the aliens (or the random noise of space), we don't make faulty assumptions of what that format will be.

4 posted on 07/11/2012 2:19:07 PM PDT by KarlInOhio (You only have three billion heartbeats in a lifetime.How many does the government claim as its own?)
[ Post Reply | Private Reply | To 1 | View Replies ]


To: KarlInOhio
buffer overflows come from poor assumptions about the data. For example allocating 256 bytes of memory but trying to load a text string into it until you hit a null character, even if that is more than 256.

Ah, C-isms. Using Ada, or LISP-like languages and this problem goes away (unless you specifically tell it not to do bounds-checking): precisely because both were designed with a concept of array/list whose implementation required bounds. {In the case of LISP, the bounds being in-theory the memory of the Computer/VM [but wouldn't overflow, in any case]}

Since we don't expect any data format from the aliens (or the random noise of space), we don't make faulty assumptions of what that format will be.

I'm not so sure about that. The last few programs I've been on could be called horrid chimeras created and fostered by cut-and-paste. -- Sometimes assumptions are made in a certain section of code which are valid, but in another are invalid.

13 posted on 07/11/2012 2:54:42 PM PDT by OneWingedShark (Q: Why am I here? A: To do Justly, to love mercy, and to walk humbly with my God.)
[ Post Reply | Private Reply | To 4 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson