Browse Source

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

Paul Faure 2 years ago
parent
commit
589f250420
1 changed files with 0 additions and 18 deletions
  1. 0
    18
      prog.c

+ 0
- 18
prog.c View File

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

Loading…
Cancel
Save