Comment

Comment by annex-winged-cr

The implicitness is exactly the problem. The workaround that caused this vulnerability was done because people assumed that crypt() would never return null.

You don't even need a fancy result type. A simple Option<String> would've forced downstream users to consider the failure case, avoiding this situation in the first place.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton