gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated (a7aa1266 -> 1c58c968)


From: gnunet
Subject: [libmicrohttpd] branch master updated (a7aa1266 -> 1c58c968)
Date: Thu, 05 May 2022 14:07:07 +0200

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

karlson2k pushed a change to branch master
in repository libmicrohttpd.

    from a7aa1266 test_parse_cookies: added more checks
     new 86f53a3d daemon: muted compiler warning
     new 1c58c968 Fixed wrong (inverted) asserts

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/connection.c | 2 +-
 src/microhttpd/daemon.c     | 2 +-
 src/microhttpd/digestauth.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 0a3dc282..93408eb7 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -1189,7 +1189,7 @@ try_ready_chunked_body (struct MHD_Connection *connection,
     const size_t data_write_offset
       = (size_t) (connection->response_write_position - response->data_start);
     /* buffer already ready, use what is there for the chunk */
-    mhd_assert (SSIZE_MAX < (response->data_size - data_write_offset));
+    mhd_assert (SSIZE_MAX >= (response->data_size - data_write_offset));
     mhd_assert (response->data_size >= data_write_offset);
     ret = (ssize_t) (response->data_size - data_write_offset);
     if ( ((size_t) ret) > size_to_fill)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 65529b3c..404fccf1 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -4142,7 +4142,7 @@ MHD_get_timeout_i (struct MHD_Daemon *daemon)
 #else  /* SIZEOF_INT < SIZEOF_INT64_T */
   const int64_t to64 = MHD_get_timeout64s (daemon);
   if (INT_MAX >= to64)
-    return to64;
+    return (int) to64;
   return INT_MAX;
 #endif /* SIZEOF_INT < SIZEOF_INT64_T */
 }
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index cf4a9256..5232ae10 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -568,7 +568,7 @@ get_nonce_nc_idx (size_t arr_size,
                   const char *nonce,
                   size_t noncelen)
 {
-  mhd_assert (0 == arr_size);
+  mhd_assert (0 != arr_size);
   return fast_simple_hash ((const uint8_t *) nonce, noncelen) % arr_size;
 }
 

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