gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r34725 - libmicrohttpd/src/testspdy
Date: Sat, 20 Dec 2014 01:55:21 +0100

Author: grothoff
Date: 2014-12-20 01:55:21 +0100 (Sat, 20 Dec 2014)
New Revision: 34725

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

Modified: libmicrohttpd/src/testspdy/test_new_connection.c
===================================================================
--- libmicrohttpd/src/testspdy/test_new_connection.c    2014-12-20 00:54:51 UTC 
(rev 34724)
+++ libmicrohttpd/src/testspdy/test_new_connection.c    2014-12-20 00:55:21 UTC 
(rev 34725)
@@ -149,6 +149,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]