News for hackers. Stuff that matters.
Re:We found a division by zero bug in FFmpeg with a vibecode... by Sharlin on Friday August 28, 2026 @05:21AM (#49476266)
The Rust standard library has `NonZero<T>`, which, if used, at least forces you to consider what you initialize it with. Doing

  let foo = NonZero::new(unvalidated_input).unwrap();
is at the very least a big red sign that stands out in the code and should fail code review.

There are no comments on this comment yet.