[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r36923 - libmicrohttpd/doc/examples
From: |
gnunet |
Subject: |
[GNUnet-SVN] r36923 - libmicrohttpd/doc/examples |
Date: |
Mon, 29 Feb 2016 13:27:58 +0100 |
Author: grothoff
Date: 2016-02-29 13:27:57 +0100 (Mon, 29 Feb 2016)
New Revision: 36923
Modified:
libmicrohttpd/doc/examples/tlsauthentication.c
Log:
-Fabian Mewes:
Fix the out-of-bound read of the NUL byte using strlen() in
microhttpd/daemon.c:MHD_init_daemon_certificate()
Fix the out-of-bound read of the NUL byte using strlen() in
microhttpd/daemon.c:MHD_init_daemon_certificate()
Modified: libmicrohttpd/doc/examples/tlsauthentication.c
===================================================================
--- libmicrohttpd/doc/examples/tlsauthentication.c 2016-02-29 00:21:51 UTC
(rev 36922)
+++ libmicrohttpd/doc/examples/tlsauthentication.c 2016-02-29 12:27:57 UTC
(rev 36923)
@@ -98,12 +98,13 @@
if (!fp)
return NULL;
- buffer = malloc (size);
+ buffer = malloc (size + 1);
if (!buffer)
{
fclose (fp);
return NULL;
}
+ buffer[size] = '\0';
if (size != fread (buffer, 1, size, fp))
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r36923 - libmicrohttpd/doc/examples,
gnunet <=