gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated: Fixed grow buffer check on 32-bit


From: gnunet
Subject: [libmicrohttpd] branch master updated: Fixed grow buffer check on 32-bit platforms
Date: Wed, 31 Jan 2024 00:11:08 +0100

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 aef8f949 Fixed grow buffer check on 32-bit platforms
aef8f949 is described below

commit aef8f94992c7344085ab2c8eb281e618c96a269f
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed Jan 31 00:10:38 2024 +0100

    Fixed grow buffer check on 32-bit platforms
---
 src/microhttpd/connection.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 916ca691..d0a06061 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -3595,12 +3595,13 @@ check_and_grow_read_buffer_space (struct MHD_Connection 
*c)
                                 c->read_buffer_size);
         else
         {
-          const size_t cur_chunk_left =
+          const uint64_t cur_chunk_left =
             c->rq.current_chunk_size - c->rq.current_chunk_offset;
           /* Do not grow read buffer more than necessary to process the current
              chunk with terminating CRLF. */
           mhd_assert (c->rq.current_chunk_offset <= c->rq.current_chunk_size);
-          rbuff_grow_desired = ((cur_chunk_left + 2) > c->read_buffer_size);
+          rbuff_grow_desired =
+            ((cur_chunk_left + 2) > (uint64_t) (c->read_buffer_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]