mirror of
https://github.com/jiangcuo/nix.git
synced 2026-08-10 11:44:34 +00:00
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 |
||
|---|---|---|
| .. | ||
| mod.rs | ||
| test_aio_drop.rs | ||
| test_aio.rs | ||
| test_epoll.rs | ||
| test_inotify.rs | ||
| test_ioctl.rs | ||
| test_mman.rs | ||
| test_pthread.rs | ||
| test_ptrace.rs | ||
| test_select.rs | ||
| test_signal.rs | ||
| test_signalfd.rs | ||
| test_socket.rs | ||
| test_sockopt.rs | ||
| test_stat.rs | ||
| test_sysinfo.rs | ||
| test_termios.rs | ||
| test_timerfd.rs | ||
| test_uio.rs | ||
| test_wait.rs | ||