Re:Alpine Linux Security advisory: OpenSSH-server password a...
by slopinthebag on Thursday November 05, 2026 @12:18PM
(#50381694)
no rust programmer would ever return a sentinel string like this.
[ Parent
| on HN ]
Re:Alpine Linux Security advisory: OpenSSH-server password a...
by ethin on Thursday November 05, 2026 @01:21PM
(#50382459)
Are you sure about that? When backwards compatibility comes into the picture people tend to bend over backwards.
Re:Alpine Linux Security advisory: OpenSSH-server password a...
by _flux on Thursday November 05, 2026 @02:25PM
(#50383268)
Backwards compatibility with what? Rust has always has had enum also for this exact case, to avoid encoding sentinels as strings or pointers.
Re:Alpine Linux Security advisory: OpenSSH-server password a...
by slopinthebag on Thursday November 05, 2026 @03:43PM
(#50384230)
you literally sound insane. its like an assembly fanboy saying C isn't any better because you could write inline asm, and therefore whatever bugs C prevents, well, it doesn't prevent them at all.
people like you are holding back software and security by decades.
Re:Alpine Linux Security advisory: OpenSSH-server password a...
by slopinthebag on Thursday November 05, 2026 @03:49PM
(#50384301)
im quite positive the only rust programmer who would do this is a C programmer who doesn't understand rust
Re:Alpine Linux Security advisory: OpenSSH-server password a...
by anonreplier on Thursday November 05, 2026 @03:11PM
(#50383848)
why, because they all use agents to do the coding and don't check it?
Re:Alpine Linux Security advisory: OpenSSH-server password a...
by slopinthebag on Thursday November 05, 2026 @03:46PM
(#50384257)
because rust has features that makes doing it pointless.
in theory could someone do it? yeah, just like in theory someone could use unsafe and return a raw char pointer for some reason.
but in practice would anyone do it? no.