How to avoid buffer overflow?



How to avoid buffer overflow?..

Answer / nashiinformaticssolutions

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

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

How can I discover how many arguments a function was actually called with?

1 Answers  


how to return 1000 variables from functio9n in c?plz give me code also

6 Answers  


List out few of the applications that make use of Multilinked Structures?

2 Answers   Accenture,


What are the two forms of #include directive?

1 Answers   Aspire, Infogain,


how to get starting address of a running C program

3 Answers  


Why does this code crash?

1 Answers  


Mention four important string handling functions in c languages .

1 Answers  


2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier.  Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed.  When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed.  Sequence of take-off is the sequence of addition to the waitlist

1 Answers  


how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

1 Answers  


Is exit(status) truly equivalent to returning the same status from main?

1 Answers  


read a number & print all its devisors using c-program?

3 Answers  


When is an interface "good"?

1 Answers  


Categories