Processeur sécurisé terminé, fichier vulnérable test 1

This commit is contained in:
Paul Faure 2021-06-23 18:08:29 +02:00
parent 1ec8f84f21
commit 589f250420

18
prog.c
View file

@ -1,18 +0,0 @@
int max(int * tab, int size) {
int i = 0;
int max = 0;
while (i<size) {
printf(tab[i]);
stop(10);
if (tab[i] > max) {
max = tab[i];
}
i = i+1;
}
return max;
}
int main() {
int tab[10] = {1,2,3,4,5,6,7,8,9,0};
printf(max(tab, 10));
}