[vlc-devel] [PATCH 1/3] avformat: null terminate data for av_probe_input_format()

Rémi Denis-Courmont remi at remlab.net
Mon Jul 27 20:07:08 CEST 2015


Does libavformat specifies this?! It rather looks like a bug in (your version of) libavformat.

Rémi Denis-Courmont
http://www.remlab.net/
on Tegra Note

Le 27 juil. 2015 20:38, Hannes Domani <ssbssa at yahoo.de> a écrit :
>
> --- 
> modules/demux/avformat/demux.c | 1 + 
> 1 file changed, 1 insertion(+) 
>
> diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c 
> index 50072e6..e34ae88 100644 
> --- a/modules/demux/avformat/demux.c 
> +++ b/modules/demux/avformat/demux.c 
> @@ -181,6 +181,7 @@ int OpenDemux( vlc_object_t *p_this ) 
>          msg_Warn( p_demux, "cannot peek" ); 
>          return VLC_EGENERIC; 
>      } 
> +    pd.buf[pd.buf_size] = 0; 
>      stream_Control( p_demux->s, STREAM_CAN_SEEK, &b_can_seek ); 
>
>      vlc_init_avformat(p_this); 
> -- 
> 2.4.6 
>
> _______________________________________________ 
> vlc-devel mailing list 
> To unsubscribe or modify your subscription options: 
> https://mailman.videolan.org/listinfo/vlc-devel 
>


More information about the vlc-devel mailing list