1.

Why apps developed in languages like C, C++ is prone to Buffer-overflow?(a) No string boundary checks in predefined functions(b) No storage check in the external memory(c) No processing power check(d) No database checkI have been asked this question in an interview for internship.The above asked question is from Buffer Overflow in portion Cyber Security of Cyber Security

Answer»

Correct choice is (a) No string boundary checks in predefined functions

For explanation I would SAY: The strcat(), STRCPY(), sprintf(), gets() etc when CALLED in C and C++ can be exploited because these functions don’t check whether the stack is large enough for storing the data fetched from some other variable HOLDING larger data.



Discussion

No Comment Found

Related InterviewSolutions