How to avoid buffer overflow?

Answer Posted / nashiinformaticssolutions

Use bounds-checking functions like fgets() instead of unsafe functions like gets().

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In C language, a variable name cannot contain?

1034


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

1052


What do you mean by keywords in c?

912


How can you check to see whether a symbol is defined?

849


Can we use visual studio for c?

797


Difference between Function to pointer and pointer to function

865


count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array

897


Define Array of pointers.

861


Why is c not oop?

764


What is pointer and structure in c?

800


What do you understand by normalization of pointers?

844


How can I get back to the interactive keyboard if stdin is redirected?

907


Where in memory are my variables stored?

870


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1744


Explain the difference between call by value and call by reference in c language?

892