third_party_rust_nix/test
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
..
common Fix all formating problems to pass CI formating test 2022-06-24 00:35:52 +03:00
sys Fix UB in the SO_TYPE sockopt 2022-11-28 23:07:54 -07:00
test_kmod Run a round of clippy to fix CI 2022-11-06 11:40:46 -08:00
test_clearenv.rs Convert the crate to edition 2018 2020-05-31 19:07:15 -06:00
test_dir.rs Run a round of clippy to fix CI 2022-11-06 11:40:46 -08:00
test_fcntl.rs Clippy cleanup with the latest nightly. 2022-11-25 08:27:55 -07:00
test_mount.rs Fix clippy warnings on nightly 2022-10-08 14:08:54 -05:00
test_mq.rs Fix all formating problems to pass CI formating test 2022-06-24 00:35:52 +03:00
test_net.rs fix clippy assertions_on_result_states 2022-08-04 09:44:40 +08:00
test_nix_path.rs Fix all formating problems to pass CI formating test 2022-06-24 00:35:52 +03:00
test_nmount.rs Fix all formating problems to pass CI formating test 2022-06-24 00:35:52 +03:00
test_poll.rs Fix all formating problems to pass CI formating test 2022-06-24 00:35:52 +03:00
test_pty.rs remove deprecated items 2022-08-09 12:15:52 +08:00
test_ptymaster_drop.rs Fix all formating problems to pass CI formating test 2022-06-24 00:35:52 +03:00
test_resource.rs Fix all formating problems to pass CI formating test 2022-06-24 00:35:52 +03:00
test_sched.rs Add a sched_getcpu wrapper 2022-09-27 14:26:35 +02:00
test_sendfile.rs Fix all formating problems to pass CI formating test 2022-06-24 00:35:52 +03:00
test_stat.rs format code 2022-08-09 12:17:27 +08:00
test_time.rs Folloup for !1778, remove some of the less helpful error msgs 2022-08-12 08:29:29 +08:00
test_timer.rs Fix all formating problems to pass CI formating test 2022-06-24 00:35:52 +03:00
test_unistd.rs Run a round of clippy to fix CI 2022-11-06 11:40:46 -08:00
test.rs Add sched_getaffinity and sched_setaffinity on FreeBSD 2022-08-25 18:42:20 -05:00