diff --git a/ex-lepl1503.c b/ex-lepl1503.c index cef6b0fac2b58366a6aa465eee31a4416b8bec36..cbbb63e6c3650dbf755f5e9203de4a818cc3efd3 100644 --- a/ex-lepl1503.c +++ b/ex-lepl1503.c @@ -17,7 +17,8 @@ void test_maxifailed(void) /*Exemple de test qui échouera */ CU_ASSERT(maxi(0,2)==3); } -void erreurmalloc(void){ +void erreurmalloc(void) /*Une fonction qui fait une erreur malloc (pour ccpcheck et valgrind) +{ char *buffer; buffer=malloc(3*sizeof(char)); buffer[3]='a'; /*Accès hors tableau*/