[vlc-devel] [PATCH] variables: fix null-deref when the inherited variable is not in config

Thomas Guillem thomas at gllm.fr
Fri Mar 2 16:08:47 CET 2018

On Fri, Mar 2, 2018, at 15:40, RĂ©mi Denis-Courmont wrote:
> I don't see how this can cause a NULL dereference. It should fail an 
> assertion, because it is a bug (and there are no reasonable ways to 
> handle errors by the caller).

If assert are disabled, if cause a null-deref: 

char *psz_value = strdupnull (p_config->value.psz);

> -- 
> Remi Denis-Courmont
> _______________________________________________
> 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