How can buffer overflows be avoided?

What will be an ideal response?

Buffer overflow can be avoided in two ways: by checking to see that no value greater than the memory assigned to the variable is specified for it, and by defining the sequence of steps that the program has to follow in case of a buffer overflow. Both of these solutions are programmatic, and in many cases, the only thing end users can do is continue to apply the patches to their operating systems and upgrade software as the upgrades become available. In certain cases, such as medical equipment and military weapons systems, the design process has been modified to catch more of these kinds of programmatic errors. If the application is keeping your heart beating, then 99.999% is not quite good enough, and there is no acceptable window of downtime.

Computer Science & Information Technology

You might also like to view...

The following function computes the sum of the first n? 1 integers. Show how this function satisfies the properties of a recursive function.

``` /** Computes the sum of the integers from 1 through n. @pre n > 0. @post None. @param n A positive integer @return The sum 1 + 2 + . . . + n. */ int sumUpTo(int n) { int sum = 0; if (n == 1) sum = 1; else// n > 1 sum = n + sumUpTo(n - 1); return sum; } // end sumUpTo ```

Computer Science & Information Technology

Write SQL*Plus commands to do the following:

a) List all SQL*Plus commands; b) Connect to the database 'OracleDB' with the user name 'CustomerOrders' and password 'customer'; c) Use the COLUMN command to set the output format of the field 'StaffName' to 30 characters.

Computer Science & Information Technology