[FFmpeg-cvslog] Move av_tempfile() into libavutil, it is a generically usefull thing and its small.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Oct 16 21:41:13 CEST 2011


On Sun, Oct 16, 2011 at 09:35:26PM +0200, Michael Niedermayer wrote:
> On Sun, Oct 16, 2011 at 09:22:11PM +0200, Reimar Döffinger wrote:
> > On Sun, Oct 16, 2011 at 05:21:22PM +0200, Michael Niedermayer wrote:
> > > -    fd = open(*filename, O_RDWR | O_BINARY | O_CREAT, 0444);
> > 
> > Adding O_EXCL should increase security here.
> > Seems supported at least on Linux and Windows.
> > Might fail compilation on some systems though.
> 
> fixed locally

As a side note: I found the text completely unhelpful as
to whether it works for NFSv2 mounts or not, it says it
will not work for locking purposes, but that does not answer
whether it works for avoiding the tempfile collision attacks...


More information about the ffmpeg-cvslog mailing list