Pergunta de entrevista da empresa Apple

How would you diagnose a buffer overflow?

Resposta da entrevista

Sigiloso

11 de nov. de 2013

Have a canary value in the stack (like 0xDEADBEEF) and check if it still exists. Buffer overflow will overwrite the canary which can be detected.

1