[vlc-devel] commit: RTP out: fix race condition in SDP generation from RTSP DESCRIBE

Sébastien Escudier sebastien-devel at celeos.eu
Wed Feb 17 17:52:24 CET 2010


Quoting git version control <git at videolan.org>:

>      char *psz_sdp;

psz_sdp should be initialized to NULL here ...

>      struct sockaddr_storage dst;
>      socklen_t dstlen;
> @@ -746,11 +746,15 @@ char *SDPGenerate( const sout_stream_t *p_stream, const
> char *rtsp_url )
>       */
>      int inclport;
>
> +    vlc_mutex_lock( &p_sys->lock_es );
> +    if( unlikely(p_sys->i_es == 0) )
> +        goto out; /* hmm... */

... because of this goto




More information about the vlc-devel mailing list