Pergunta de entrevista da empresa NetApp

How does malloc work? What happens when there is buffer overflow in malloc? What kind of errors can you expect