Pregunta de entrevista de Capgemini

How does the malloc() function work internally? What are potential issues with its usage?