[vlc-devel] [PATCH 1/3] mux/ts: add missing error check

remi at remlab.net remi at remlab.net
Wed Dec 2 20:46:22 CET 2020


From: RĂ©mi Denis-Courmont <remi at remlab.net>

---
 modules/mux/mpeg/ts.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/mux/mpeg/ts.c b/modules/mux/mpeg/ts.c
index 569735541b..c5df6a1d3b 100644
--- a/modules/mux/mpeg/ts.c
+++ b/modules/mux/mpeg/ts.c
@@ -493,6 +493,9 @@ static csa_t *csaSetup( vlc_object_t *p_this )
 
     csa_t *csa = csa_New();
 
+    if( unlikely(csa == NULL) )
+        return NULL;
+
     if( csa_SetCW( p_this, csa, csack, true ) )
     {
         free(csack);
-- 
2.29.2



More information about the vlc-devel mailing list