Re:Alpine Linux Security advisory: OpenSSH-server password a...
by uecker on Thursday November 05, 2026 @02:46PM
(#50383526)
While dereferencing a null pointer is technically UB, it practice it leads to a safe trap. So .unwrap is the right comparison. If you always forward the error to the caller, it will also just lead to some random error message at some point, not really different to a crash.
Given how easy it is to just forward that error to the caller, I think most Rust developers would just choose to do that.