[vlc-devel] [PATCH 3/3] control: cli: fix NULL pointer leading to PlayerSeek crash

Zhao Zhili quinkblack at foxmail.com
Wed Feb 3 12:53:08 UTC 2021


From: Zhao Zhili <zhilizhao at tencent.com>

---
 modules/control/cli/cli.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/control/cli/cli.c b/modules/control/cli/cli.c
index b134e471bf..ca396a2ee3 100644
--- a/modules/control/cli/cli.c
+++ b/modules/control/cli/cli.c
@@ -325,7 +325,10 @@ error:      wordfree(&we);
         arg += strspn(arg, " ");
 
         if (*arg)
+        {
+            args[1] = arg;
             count++;
+        }
     }
 #endif
 
-- 
2.28.0



More information about the vlc-devel mailing list