News for hackers. Stuff that matters.
Re:FFmpeg and a thousand fixes by Perseids on Friday January 10, 2014 @04:01PM (#7039350)
On the 30C3 there was a talk about a C Compiler (actually an llvm optimization plugin) that can eliminate nearly every memory management related vulnerability by adding memory checks. The penalty is only a 100% increase in runtime.

> If you're a C programmer and somebody says like: I've that optimization that makes your program 3% faster you go: wow! Then you come and say: well, now I make it half as fast you go: w00t?! But then you remember that people actually use ruby to serve web pages.

I'd say this would be actually worth it for a far more secure FFmpeg.

https://www.youtube.com/watch?v=2ybcByjNlq8

Re:FFmpeg and a thousand fixes by StavrosK on Friday January 10, 2014 @04:19PM (#7039483)
The difference is that FFMpeg is very, very CPU-bound, taking four hours instead of two to encode a movie is a big hassle. On the other hand, not many people use a world-facing FFmpeg instance to submit jobs to. I don't see why security should trump speed here.
Re:FFmpeg and a thousand fixes by Perseids on Friday January 10, 2014 @04:25PM (#7039539)
Re:FFmpeg and a thousand fixes by Crito on Friday January 10, 2014 @04:34PM (#7039618)
For realtime playback locally sure. I don't think there are many/any public-facing systems backed by VLC. Presumably VLC prioritizes speed over security.
Re:FFmpeg and a thousand fixes by Perseids on Friday January 10, 2014 @04:52PM (#7039755)
Oh, that was the point being made. My view is that VLC essentially is a public facing system, in the same sense that my browser is a public facing system. Sure, it is not as easy to do a targeted attack against my VLC as against my mail client (or against the nginx on my server). But it is fed a lot of untrusted data. The same goes for Chrome, which also uses FFmpeg according to the article.
Re:FFmpeg and a thousand fixes by bane on Friday January 10, 2014 @10:01PM (#7041304)
or plex, which i believe is ffmpeg based for real-time transcoding
Re:FFmpeg and a thousand fixes by vezzy-fnord on Friday January 10, 2014 @04:40PM (#7039667)
There's also AT&T Labs' memory-safe dialect of C called Cyclone: http://cyclone.thelanguage.org/

It's been around since 2006, but I haven't really heard of anyone using it. I wonder why.

Re:FFmpeg and a thousand fixes by berdario on Friday January 10, 2014 @06:35PM (#7040434)
Cyclone has been dead since years (the last release is dated 5 May 2006)

It never compiled on 64bit architectures, and to get it to compile with 4.0 or 4.1 (newer versions of gcc won't work) you need to fetch it from SVN (last commit is dated May 2009)... and obviously: no distribution still ship such an old version of the build tools... you'd need something like debian lenny, which does not even receive security updates anymore

Re:FFmpeg and a thousand fixes by al2o3cr on Friday January 10, 2014 @07:39PM (#7040768)
"that can eliminate nearly every memory management related vulnerability"

This is like saying "my bulletproof vest will stop nearly every round fired at it". Too bad it only takes ONE...

Re:FFmpeg and a thousand fixes by fzltrp on Friday January 10, 2014 @11:47PM (#7041627)
So I suppose you'd rather not wear any bulletproof vest?