[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 21/264: select: add 'timeout_ms' wrap-around precaution to Curl_
From: |
gnunet |
Subject: |
[gnurl] 21/264: select: add 'timeout_ms' wrap-around precaution to Curl_select |
Date: |
Thu, 30 Apr 2020 16:05:24 +0200 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit 696cfc0f6ca4f4cf822cef50ff6ea8c012a016df
Author: Marc Hoersken <address@hidden>
AuthorDate: Thu Mar 12 09:34:34 2020 +0100
select: add 'timeout_ms' wrap-around precaution to Curl_select
---
lib/select.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/select.c b/lib/select.c
index bbada45fc..1ab023934 100644
--- a/lib/select.c
+++ b/lib/select.c
@@ -122,6 +122,12 @@ int Curl_select(curl_socket_t maxfd,
int pending_ms;
int r;
+#if SIZEOF_TIME_T != SIZEOF_INT
+ /* wrap-around precaution */
+ if(timeout_ms >= INT_MAX)
+ timeout_ms = INT_MAX;
+#endif
+
#ifdef USE_WINSOCK
/* WinSock select() can't handle zero events. See the comment below. */
if((!fds_read || fds_read->fd_count == 0) &&
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] 59/264: ci/tests: fix Azure Pipelines not running Windows containers, (continued)
- [gnurl] 59/264: ci/tests: fix Azure Pipelines not running Windows containers, gnunet, 2020/04/30
- [gnurl] 54/264: secure transport: remove the BACKEND define kludge, gnunet, 2020/04/30
- [gnurl] 57/264: cmdline: fix handling of OperationConfig linked list (--next), gnunet, 2020/04/30
- [gnurl] 43/264: http2: Fix erroneous debug message that h2 connection closed, gnunet, 2020/04/30
- [gnurl] 52/264: bearssl: remove the BACKEND define kludge, gnunet, 2020/04/30
- [gnurl] 64/264: CURLINFO_NUM_CONNECTS: improve accuracy, gnunet, 2020/04/30
- [gnurl] 66/264: getinfo: provide CURLINFO_HEADER_SIZE and CURLINFO_REQUEST_SIZE override, gnunet, 2020/04/30
- [gnurl] 16/264: ci/tests: install test suite dependencies stunnel and impacket, gnunet, 2020/04/30
- [gnurl] 69/264: cirrus: make freebsd ignore the tests instead of skipping, gnunet, 2020/04/30
- [gnurl] 71/264: RELEASE-NOTES: synced, gnunet, 2020/04/30
- [gnurl] 21/264: select: add 'timeout_ms' wrap-around precaution to Curl_select,
gnunet <=
- [gnurl] 79/264: travis: update the ngtcp2 build to use the latest OpenSSL patch, gnunet, 2020/04/30
- [gnurl] 70/264: OS400: Update strings for ccsid-ifier, gnunet, 2020/04/30
- [gnurl] 73/264: packages: add OS400/chkstrings.c to the dist, gnunet, 2020/04/30
- [gnurl] 50/264: nss: remove the BACKEND define kludge, gnunet, 2020/04/30
- [gnurl] 62/264: lib/curl_setup: adjust the copyright year range, gnunet, 2020/04/30
- [gnurl] 78/264: CI: remove default Ubuntu build from GitHub Actions, gnunet, 2020/04/30
- [gnurl] 30/264: vtls: free ssl_config leftovers on out-of-memory, gnunet, 2020/04/30
- [gnurl] 75/264: config: remove all defines of HAVE_DES_H, gnunet, 2020/04/30
- [gnurl] 65/264: test970: improve the test, gnunet, 2020/04/30
- [gnurl] 82/264: docs/make: generate curl.1 from listed files only, gnunet, 2020/04/30