News for hackers. Stuff that matters.
Re:Twenty One Zero-Days in FFmpeg by uecker on Saturday June 13, 2026 @08:48AM (#48516770)
Or use a buffer abstraction in C. This is not exactly rocket science. The "this is impossible to prevent in C" nonsense does far more harm than good.
Re:Twenty One Zero-Days in FFmpeg by codedokode on Saturday June 13, 2026 @10:50AM (#48517893)
To be fair, C is a pain to use, so it is better to improve Rust. It is annoying when for example, you have to free several allocated structures when there is an error in the middle of a functon.
Re:Twenty One Zero-Days in FFmpeg by uecker on Saturday June 13, 2026 @11:28AM (#48518224)
I personally like to use C and find Rust annoyingly complex. I think it may be an alternative to C++, but C++ is also too complex for my taste. I do not find it annoying to free several allocated structures when there is an error, but one could also automate this with a often used extension.

There is also the question whether trading memory safety against supply chain risks is really worth it.

Re:Twenty One Zero-Days in FFmpeg by shermantanktop on Saturday June 13, 2026 @12:42PM (#48518943)
Errors are easily found and corrected for a modest one-person project in C.

But we’re combining probability of error creation (which is effectively constant) and the limits of human cognition.

Some things are impossible at one scale, become possible at another, and become inevitable at yet another.