Alan Somers 8e91b28b64 Fix UB in the SO_TYPE sockopt
When reading a value into an enum from getsockopt, we must validate it.
Failing to do so can lead to UB for example with SOCK_PACKET on Linux.

Perform the validation in GetSockOpt::get.  Currently SockType is the
only type that requires validation.

Fixes #1819
2022-11-28 23:07:54 -07:00
..
2022-11-28 23:07:54 -07:00
2022-11-06 11:40:46 -08:00
2022-11-06 11:40:46 -08:00
2022-10-08 14:08:54 -05:00
2022-08-09 12:15:52 +08:00
2022-09-27 14:26:35 +02:00
2022-08-09 12:17:27 +08:00
2022-11-06 11:40:46 -08:00