[FFmpeg-devel] I've written a filter in Rust

Rémi Denis-Courmont remi at remlab.net
Fri Feb 28 17:35:08 EET 2025


Le 27 février 2025 23:01:45 GMT+02:00, Michael Niedermayer <michael at niedermayer.cc> a écrit :
>we have a memleak, a use after free, a aliasing violation,
>some invalid pointer and a out of array read
>
>a safe language should not allow any of this
>C++ allows all of it, its not safe, switching to C++ doesnt help

To be fair, Rust allows memory leaks, though it vastly reduces the situations in which they can happen. And it will compile code attempting out of bounds slice or array accesses (though that code will panic at runtime).

But I agree that C++ isn't worth switching to.


More information about the ffmpeg-devel mailing list