haiku/headers
Augustin Cavalier c8394c8111 kernel: Adjust timeout computation for syscall_restart.
If the timeout is already >= B_INFINITE_TIMEOUT, we do not need
to do any of the following math (which would usually overflow anyway)
and can leave the timeout alone.

Spotted by kernel undefined behavior sanitizer.

Change-Id: If750a7c4ec0f9607f1c260fded7d393fac88bea7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4561
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-10-09 13:32:33 +00:00
..
build libroot: remove delete_driver_settings 2021-05-31 06:51:45 +00:00
compatibility features.h: enable ISOC11 definitions for _GNU_SOURCE and C++17 2021-05-04 05:25:52 +00:00
config ARM64: Initial changes so we can compile GCC toolchain 2019-08-30 19:05:16 +00:00
cpp build fix. 2015-11-12 22:24:16 +01:00
glibc Make public glibc header printf.h usable. 2013-07-17 18:07:56 +02:00
libs agg: fix build. 2020-01-22 19:25:16 +01:00
os version: Add BETA_3 and PRE_BETA_4 constraints. 2021-06-21 11:35:47 -05:00
posix C11: define __STDC_NO_THREADS__ as threads.h is not provided 2021-06-21 12:31:53 +00:00
private kernel: Adjust timeout computation for syscall_restart. 2021-10-09 13:32:33 +00:00
tools Fix #12799: Enable elf symbol patching for Haiku 2016-10-30 10:42:24 +01:00