[FFmpeg-devel] [RFC] libavformat/avio.h API cleanup

Nicolas George nicolas.george
Sun Mar 6 18:37:01 CET 2011


Le sextidi 16 vent?se, an CCXIX, M?ns Rullg?rd a ?crit?:
> Existence checks are almost always wrong as by the time you act on the
> information, it may already be stale, leaving the door open for race
> conditions which may have serious security implications.

I hope everyone here already knows that. But _almost_ always is not always.
The way it is used in img2, for example, seems reasonable.

URL_FLAG_NOCLOBBER (mapping to O_EXCL for plain file) may be nice though.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110306/ffe55c0d/attachment.pgp>



More information about the ffmpeg-devel mailing list