aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/response.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/response.c')
-rw-r--r--src/microhttpd/response.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index 5dcdca18..ab8a56e8 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -895,7 +895,7 @@ MHD_create_response_from_iovec (const struct MHD_IoVec *iov,
895 } 895 }
896 if ( (total_size > (total_size + iov[i].iov_len)) || 896 if ( (total_size > (total_size + iov[i].iov_len)) ||
897 (INT_MAX == i_cp) || 897 (INT_MAX == i_cp) ||
898 (SSIZE_MAX < iov[i].iov_len) ) 898 (SSIZE_MAX < (total_size + iov[i].iov_len)) )
899 { 899 {
900 i_cp = -1; /* overflow */ 900 i_cp = -1; /* overflow */
901 break; 901 break;