From ef3dfd2268a119305aad9db21ada3e59890ce8e3 Mon Sep 17 00:00:00 2001 From: Axel Legay <axel.legay@uclouvain.be> Date: Wed, 4 Mar 2020 11:45:30 +0100 Subject: [PATCH] Update ex-lepl1503.c --- ex-lepl1503.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ex-lepl1503.c b/ex-lepl1503.c index cef6b0f..cbbb63e 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*/ -- GitLab