Pregunta de entrevista de MediaTek

How to prevent buffer overflow attacks?