[FFmpeg-devel] [RFC] libavformat/avio.h API cleanup
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-devel