Course Solutions Uncategorized (Solved) : Buffer Overflow Example Fixed Safe Int Bof Char Str Int Size Char Buffer Char Malloc Size Q27078165 . . . .

(Solved) : Buffer Overflow Example Fixed Safe Int Bof Char Str Int Size Char Buffer Char Malloc Size Q27078165 . . . .

 

The buffer overflow example was fixed as below. Is this safe?

int bof(char * )str, int size){

char *buffer = (char *) malloc(size);

strcpy(buffer, str);

return 1;

}

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

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

Related Post