cours/content/secu_logicielle/td7-analyse_statique_dynamique/files/q3/test-uninitialized.c
2023-05-09 21:57:14 +02:00

17 lines
211 B
C

#include <stdlib.h>
#include <stdio.h>
void f(char foo) {
if (foo == 0)
printf("foo is 0\n");
else
printf("foo is %d\n", foo);
}
int main(void) {
char *c = malloc(10);
f(c[0]);
free(c);
return 0;
}