News for hackers. Stuff that matters.
Re:size_t-to-int vulnerability in Linux’s filesystem layer by marcosdumay on Tuesday July 20, 2021 @05:21PM (#27899526)
I think Rust has no language construction for that, but the best implementation of "size as i32" should fail on overflow.

In Haskell I would use an exception, and mark the function as unsafe, but the stdlib seems to disagree with me here.

There are no comments on this comment yet.