On Wed, Feb 04, 2015 at 02:20:58PM +0000, Vittorio Giovara wrote:
> CC: [email protected]
> Bug-Id: CID 1267891
> ---
>  libavfilter/graphparser.c | 2 ++
>  1 file changed, 2 insertions(+)
> --- a/libavfilter/graphparser.c
> +++ b/libavfilter/graphparser.c
> @@ -62,6 +62,8 @@ static char *parse_link_name(const char **buf, void 
> *log_ctx)
>      (*buf)++;
>  
>      name = av_get_token(buf, "]");
> +    if (!name)
> +        goto fail;
>  
>      if (!name[0]) {
>          av_log(log_ctx, AV_LOG_ERROR,

OK

I'll note that the goto label in the middle of an if-block looks very weird,
maybe you wish to change that while you're at it.

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to