Question: The following C code is vulnerable to a buffer overflow attack because it calls gets ( ) . Select options in the following sketch of
The following C code is vulnerable to a buffer overflow attack because it calls gets Select options in the following sketch of the stack to show the stack frame of the procedure option. Note: The size of
each block of memory in the stack is to be indicated in bytes the diagram does not indicate the size of each block.
How many characters is the longest input line that can be typed without overwriting the return address on the stack?
bytes
long option
char input;
getsinput;
return inputy;
The assembly code generated by the compiler is as follows.
option: in the picture
Q How many characters is the longest input line that can be typed without overwriting the return address on the stack? The answer is not or What can be the right answer?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
