points by afc 2 days ago | 0 comments
Such a questionable decision! "Rather than let a bug in a caller (not handling the valid null output and thus crashing) surface, let's just silence it and pretend that the caller is correct! A potential clash in some situations (resulting in this vulnerability) is better than a crash!"
Maybe I should update my plea to fail loudly (https://alejo.ch/3gk) to list this as an example.
[–] boomlinde 2 days ago
[–] 01HNNWZ0MV43FF 2 days ago
It's always a people problem. Doing a bad patch on my side is easier than bothering anyone else to fix their code
NetBSD and libxcrypt both have similar workarounds. NetBSD has a paragraph on the reasoning.
OpenBSD and glibc both have similar simple, stupid-free return value implementations. OpenBSD: GNU: The distro I use on the desktop uses libxcrypt, though. Probably more distros are. Its, NetBSD's and musl's workarounds probably make sense in some way if you have no clue what goes into your userland and are willing to write stupid software to accommodate for that.