gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r34724 - libmicrohttpd/src/testspdy


From: gnunet
Subject: [GNUnet-SVN] r34724 - libmicrohttpd/src/testspdy
Date: Sat, 20 Dec 2014 01:54:51 +0100

Author: grothoff
Date: 2014-12-20 01:54:51 +0100 (Sat, 20 Dec 2014)
New Revision: 34724

Modified:
   libmicrohttpd/src/testspdy/test_notls.c
Log:
-check malloc rval

Modified: libmicrohttpd/src/testspdy/test_notls.c
===================================================================
--- libmicrohttpd/src/testspdy/test_notls.c     2014-12-20 00:53:08 UTC (rev 
34723)
+++ libmicrohttpd/src/testspdy/test_notls.c     2014-12-20 00:54:51 UTC (rev 
34724)
@@ -128,6 +128,8 @@
 {
   char *dst;
   dst = malloc(len+1);
+  if (NULL == dst)
+    abort ();
   memcpy(dst, s, len);
   dst[len] = '\0';
   return dst;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]