gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated: test_toolarge: fixed possible NUL


From: gnunet
Subject: [libmicrohttpd] branch master updated: test_toolarge: fixed possible NULL dereference with possible test extension
Date: Sun, 03 Oct 2021 20:25:06 +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 5f86e35b test_toolarge: fixed possible NULL dereference with possible 
test extension
5f86e35b is described below

commit 5f86e35b56120a5cfc98a7463761621f6fd6ee00
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun Oct 3 21:24:55 2021 +0300

    test_toolarge: fixed possible NULL dereference with possible test extension
---
 src/testcurl/test_toolarge.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/testcurl/test_toolarge.c b/src/testcurl/test_toolarge.c
index 74cd3b4c..f81827e7 100644
--- a/src/testcurl/test_toolarge.c
+++ b/src/testcurl/test_toolarge.c
@@ -519,7 +519,8 @@ ahcCheck (void *cls,
     large_hrd_name[large_hdr_name_size] = 0;
     for (i = 0; i < large_hdr_value_size; i++)
       large_hrd_value[i] = 'Z' - i % ('Z' - 'A' + 1);
-    large_hrd_value[large_hdr_value_size] = 0;
+    if (NULL != large_hrd_value)
+      large_hrd_value[large_hdr_value_size] = 0;
     if (MHD_YES != MHD_add_response_header (response,
                                             large_hrd_name,
                                             large_hrd_value))

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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