[vlc-commits] preparser: Fix null dereference in case of error
Hugo Beauzée-Luyssen
git at videolan.org
Mon Nov 16 15:27:44 CET 2020
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Nov 13 13:34:38 2020 +0100| [fe437aba55b2dcf75fc43df526473db86e62749e] | committer: Hugo Beauzée-Luyssen
preparser: Fix null dereference in case of error
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fe437aba55b2dcf75fc43df526473db86e62749e
---
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);
More information about the vlc-commits
mailing list