nix/test/sys
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
..
mod.rs Add chflags 2022-07-13 21:27:36 -06:00
test_aio_drop.rs Fix all formating problems to pass CI formating test 2022-06-24 00:35:52 +03:00
test_aio.rs Clippy cleanup with the latest nightly. 2022-11-25 08:27:55 -07:00
test_epoll.rs fix clippy assertions_on_result_states 2022-08-04 09:44:40 +08:00
test_inotify.rs Fix all formating problems to pass CI formating test 2022-06-24 00:35:52 +03:00
test_ioctl.rs Fix clippy warnings on nightly 2022-10-08 14:08:54 -05:00
test_mman.rs mmap non-zero length 2022-11-20 22:53:40 +00:00
test_pthread.rs remove deprecated items 2022-08-09 12:15:52 +08:00
test_ptrace.rs format code 2022-08-09 12:17:27 +08:00
test_select.rs Fix all formating problems to pass CI formating test 2022-06-24 00:35:52 +03:00
test_signal.rs Fix all formating problems to pass CI formating test 2022-06-24 00:35:52 +03:00
test_signalfd.rs Fix all formating problems to pass CI formating test 2022-06-24 00:35:52 +03:00
test_socket.rs fixup! Added better support for unnamed unix socket addrs 2022-11-21 12:11:50 -05:00
test_sockopt.rs Fix UB in the SO_TYPE sockopt 2022-11-28 23:07:54 -07:00
test_stat.rs Fix clippy warnings on nightly 2022-10-08 14:08:54 -05:00
test_sysinfo.rs Fix all formating problems to pass CI formating test 2022-06-24 00:35:52 +03:00
test_termios.rs Folloup for !1778, remove some of the less helpful error msgs 2022-08-12 08:29:29 +08:00
test_timerfd.rs Fix a new clippy lint 2022-08-14 10:12:57 -06:00
test_uio.rs fix clippy assertions_on_result_states 2022-08-04 09:44:40 +08:00
test_wait.rs fix clippy assertions_on_result_states 2022-08-04 09:44:40 +08:00