From d58645151a9c1437d4bd47adad3a557857f9a5da Mon Sep 17 00:00:00 2001 From: Yorick Barbanneauwq Date: Thu, 30 Mar 2023 01:20:03 +0200 Subject: [PATCH] Work on question 3 and 4 --- .../td5-stackoverflow_shellcode/index.md | 104 ++++++++++++++++-- 1 file changed, 97 insertions(+), 7 deletions(-) diff --git a/content/secu_logicielle/td5-stackoverflow_shellcode/index.md b/content/secu_logicielle/td5-stackoverflow_shellcode/index.md index c1518f9..aeebe95 100644 --- a/content/secu_logicielle/td5-stackoverflow_shellcode/index.md +++ b/content/secu_logicielle/td5-stackoverflow_shellcode/index.md @@ -16,11 +16,19 @@ notre boucle reviens à départ; une boucle infinie se produit alors. C'est la conséquence du *buffer overflow* causée par une mauvaise maitrise des boucles et variables associées. +En effet en prenant en compte le 0 comme index de tableau, la boucle `for (i=0; +i<=N; i++)` itère 12 fois et non 11. La condition devrait être `i