Processeur sécurisé terminé, fichier vulnérable test 1
This commit is contained in:
parent
1ec8f84f21
commit
589f250420
1 changed files with 0 additions and 18 deletions
18
prog.c
18
prog.c
|
@ -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));
|
|
||||||
}
|
|
Loading…
Reference in a new issue