nielsdos
d75c1d00a9
Fix GH-11175 and GH-11177: Stream socket timeout undefined behaviour
...
A negative value like -1 may overflow and cause incorrect results in the
timeout variable, which causes an immediate timeout. As this is caused
by undefined behaviour the exact behaviour depends on the compiler, its
version, and the platform.
A large overflow is also possible, if an extremely large timeout value
is passed we also set an indefinite timeout. This is because the timeout
value is at least a 64-bit number and waiting for UINT64_MAX/1000000
seconds is waiting about 584K years.
Closes GH-11183.
2023-05-03 19:40:52 +02:00
..
2022-06-25 07:39:55 +01:00
2021-11-07 08:46:25 +01:00
2022-06-18 11:50:14 +02:00
2023-04-19 16:23:52 +02:00
2023-04-07 23:50:55 +01:00
2022-07-27 12:13:32 +02:00
2022-05-06 15:25:44 +02:00
2023-04-03 21:21:35 +02:00
2021-11-07 08:46:25 +01:00
2023-04-05 21:35:19 +02:00
2023-03-27 22:59:00 +02:00
2022-09-25 20:43:31 +02:00
2022-10-27 14:39:43 +01:00
2023-03-20 23:20:21 +01:00
2023-03-01 23:02:03 +01:00
2022-09-13 11:33:09 +01:00
2023-01-17 14:14:12 +00:00
2022-04-25 14:29:44 +02:00
2023-03-28 15:18:18 +01:00
2023-04-18 11:04:28 +02:00
2023-02-17 16:37:14 +00:00
2022-12-16 14:36:30 +01:00
2022-08-25 15:11:41 +02:00
2023-03-25 09:52:10 +02:00
2023-04-20 08:45:14 +02:00
2023-03-24 18:03:29 +01:00
2023-03-27 16:33:36 +02:00
2022-06-13 14:43:51 +02:00
2023-05-02 20:08:59 +02:00
2023-03-05 22:07:43 +01:00
2023-03-03 11:35:06 +01:00
2023-03-31 14:41:41 +02:00
2022-12-18 23:20:29 -07:00
2022-08-26 14:59:08 +02:00
2023-03-27 21:01:06 +02:00
2023-03-25 17:41:21 +00:00
2023-03-27 16:33:36 +02:00
2023-03-15 21:36:50 +01:00
2022-09-05 17:26:13 +02:00
2022-12-19 16:14:00 +01:00
2023-04-27 18:50:09 +02:00
2023-03-26 16:06:29 +02:00
2023-01-02 16:54:47 +00:00
2023-03-15 09:05:44 +01:00
2023-02-21 16:09:22 +00:00
2021-12-22 12:35:59 +01:00
2021-09-29 11:59:05 +02:00
2021-12-05 21:03:27 +01:00
2022-10-13 16:00:36 +02:00
2023-03-29 19:44:30 +02:00
2021-10-18 14:28:46 +02:00
2023-04-20 10:18:18 +02:00
2022-12-06 15:59:52 +01:00
2023-05-03 19:40:52 +02:00
2023-03-01 23:02:03 +01:00
2023-03-27 16:33:36 +02:00
2022-10-27 14:39:43 +01:00
2023-02-26 14:18:12 +00:00
2023-02-12 21:33:39 -07:00
2023-01-15 15:34:43 +00:00
2023-04-16 10:54:39 +01:00
2023-05-01 15:28:59 +02:00
2023-02-23 18:47:26 +00:00