gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated (abe138ee -> 10931144)


From: gnunet
Subject: [libmicrohttpd] branch master updated (abe138ee -> 10931144)
Date: Tue, 07 Jun 2022 20:28:48 +0200

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

karlson2k pushed a change to branch master
in repository libmicrohttpd.

    from abe138ee Fixed wrong usage of maximum client nonce size as maximum 
size of server nonce
     new b1a58407 test_str: added extra check to see why Coverity gives strange 
reports
     new 10931144 test_str: fixed code style

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/microhttpd/test_str.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/test_str.c b/src/microhttpd/test_str.c
index 2d256dd9..341585a2 100644
--- a/src/microhttpd/test_str.c
+++ b/src/microhttpd/test_str.c
@@ -244,7 +244,7 @@ n_prnt (const char *str)
 {
   static char *buf;  /* should be enough for testing */
   static const size_t buf_size = sizeof(tmp_bufs[0]);
-  const unsigned char *p = (const unsigned char*) str;
+  const unsigned char *p = (const unsigned char *) str;
   size_t w_pos = 0;
   if (++buf_idx > 3)
     buf_idx = 0;
@@ -3661,6 +3661,14 @@ check_strx_from_uint32 (void)
                      " Locale: %s\n", t->val, (int) rs, buf, (int) b_size,
                      (intptr_t) rs,  get_current_locale_str ());
           }
+          else if (sizeof(buf) <= rs)
+          {
+            fprintf (stderr,
+                     "ERROR: dstrs_w_values[%u] has string with too many"
+                     "(%u) digits, size of 'buf' should be increased.\n",
+                     (unsigned int) i, (unsigned int) rs);
+            return -1;
+          }
           else if (0 != memcmp (buf + rs, erase + rs, sizeof(buf) - rs))
           {
             if (0 == c_failed[i])

-- 
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]