Pergunta de entrevista da empresa MediaTek

How to prevent buffer overflow attacks?