shared: refuse fd == INT_MAX

Since we do `FD_TO_PTR(fd)` that expands to `INT_TO_PTR(fd) + 1` which
triggers an integer overflow.

Resolves: #27522
This commit is contained in:
Frantisek Sumsal
2023-05-05 22:15:23 +02:00
parent 77be02ad3c
commit cc938f1ce0
2 changed files with 17 additions and 0 deletions
@@ -0,0 +1,3 @@
l.socket
socket=2147483647 5