Commvault Interview Question

What are buffer overflows and how do you avoid them?