diff options
author | Alexey Izbyshev <izbyshev@ispras.ru> | 2023-03-02 08:10:47 +0300 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2023-03-02 20:00:45 -0500 |
commit | 8949da7ab1c0dbf801e8bc78f0c0adc625020f75 (patch) | |
tree | 58b1ebb9d65e8af3d15ae31b11d2e4682a1c6198 /configure | |
parent | 3281047cfca0f3848d0613e3c0d19d41b0531564 (diff) | |
download | musl-8949da7ab1c0dbf801e8bc78f0c0adc625020f75.tar.gz musl-8949da7ab1c0dbf801e8bc78f0c0adc625020f75.tar.bz2 musl-8949da7ab1c0dbf801e8bc78f0c0adc625020f75.tar.xz musl-8949da7ab1c0dbf801e8bc78f0c0adc625020f75.zip |
select: fix 64-bit timeout truncation on pre-time64 kernels
If the (normalized) timeout passed to select exceeds INT_MAX seconds on
an arch with SYS_pselect6_time64 and the kernel is too old to support
time64 syscalls, the timeout is implicitly converted to (32-bit) long on
the fallback path, losing its upper 32 bits and potentially becoming a
small positive value, violating the intended semantics, or even
a negative value, causing the fallback syscall failure. Fix this by
saturating the timeout at INT_MAX as done in other time64 fallback
cases.
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions