libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 06cd63df36994a37a2b10ba2dd8f8bc9519d3920
parent 83eecbca491fa35ad8a306a583ef6886cf818234
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Wed,  8 Jul 2026 11:37:55 +0200

limit to INT_MAX, not UINT_MAX

Diffstat:
Msrc/microhttpd/response.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c @@ -1189,7 +1189,7 @@ pipe_reader (void *cls, buf, (MHD_SCKT_SEND_SIZE_) max); #else /* _WIN32 */ - if (UINT_MAX < max) + if (INT_MAX < max) max = INT_MAX; n = read (response->fd, buf,