[vlc-devel] [PATCH 1/3] preparser: Fix null dereference in case of error
Romain Vimont
rom1v at videolabs.io
Fri Nov 13 14:13:54 CET 2020
Patchset LGTM.
On Fri, Nov 13, 2020 at 02:07:02PM +0100, Hugo Beauzée-Luyssen wrote:
> ---
> src/preparser/preparser.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/preparser/preparser.c b/src/preparser/preparser.c
> index 255efc6ce1..0dbd4853d5 100644
> --- a/src/preparser/preparser.c
> +++ b/src/preparser/preparser.c
> @@ -367,6 +367,8 @@ void input_preparser_Push( input_preparser_t *preparser,
> : VLC_TICK_FROM_MS(timeout_ms);
> struct task *task =
> TaskNew(preparser, item, i_options, cbs, cbs_userdata, id, timeout);
> + if( !task )
> + return;
>
> PreparserAddTask(preparser, task);
>
> --
> 2.29.2
>
> _______________________________________________
> 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