What type of problem or error will result from the following statement?

What type of problem or error will result from the following statement?
void f2b(void * arg, size_t len)
{
char buffer[100];
long val = …;
long *ptr = …;
extern void (*f)();
memcpy(buff, arg, len);
*ptr = val;
f();
return;
}

What type of problem or error will result from the following statement?
void f2b(void * arg, size_t len)
{
char buffer[100];
long val = …;
long *ptr = …;
extern void (*f)();
memcpy(buff, arg, len);
*ptr = val;
f();
return;
}

A.
Pointer subterfuge

B.
Heap smashing

C.
Virtual pointer smashing

D.
Sign error

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *