[vlc-devel] [PATCH] input: prevent wild pointer in the case of no attachment

Thomas Guillem thomas at gllm.fr
Mon Sep 24 11:06:37 CEST 2018


Yes, that's the correct fix.

On Fri, Sep 21, 2018, at 03:41, Zhao Zhili wrote:
> ---
>  src/input/input.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/input/input.c b/src/input/input.c
> index 3edd584..a0f9c5d 100644
> --- a/src/input/input.c
> +++ b/src/input/input.c
> @@ -3386,6 +3386,7 @@ int input_GetAttachments(input_thread_t *input,
>      if (attachments_count <= 0)
>      {
>          vlc_mutex_unlock(&priv->p_item->lock);
> +        *attachments = NULL;
>          return 0;
>      }
>  
> -- 
> 2.9.5
> 
> 
> 
> _______________________________________________
> 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