gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] branch master updated: Fixed strlen(NULL) i


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] branch master updated: Fixed strlen(NULL) in bcdff026967469e6c9cd1a22db80721712586a8e
Date: Fri, 03 May 2019 15:38:11 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new 7e4885da Fixed strlen(NULL) in bcdff026967469e6c9cd1a22db80721712586a8e
7e4885da is described below

commit 7e4885da25b58455452cd6dbcd167f761e3ff38e
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Fri May 3 16:37:33 2019 +0300

    Fixed strlen(NULL) in bcdff026967469e6c9cd1a22db80721712586a8e
---
 src/microhttpd/connection.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 78c36f07..ef3228a7 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -749,8 +749,8 @@ MHD_set_connection_value_n (struct MHD_Connection 
*connection,
   struct MHD_HTTP_Header *pos;
 
   if ( (MHD_GET_ARGUMENT_KIND != kind) &&
-       ( (strlen(key) != key_size) ||
-         (strlen(value) != value_size) ) )
+       ( ((key ? strlen(key) : 0) != key_size) ||
+         ((value ? strlen(value) : 0) != value_size) ) )
     return MHD_NO; /* binary zero is allowed only in GET arguments */
 
   pos = MHD_pool_allocate (connection->pool,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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