[vlc-commits] [Git][videolan/vlc][master] access: rtp: fix null deref on missing codec parameters

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Fri Dec 16 16:50:08 UTC 2022



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
ecf1571e by Francois Cartegnie at 2022-12-16T16:38:49+00:00
access: rtp: fix null deref on missing codec parameters

- - - - -


1 changed file:

- modules/access/rtp/h264.c


Changes:

=====================================
modules/access/rtp/h264.c
=====================================
@@ -368,6 +368,9 @@ static int rtp_h264_open(vlc_object_t *obj, struct vlc_rtp_pt *pt,
 {
     VLC_UNUSED(obj);
 
+    if(!desc->parameters)
+        return VLC_ENOTSUP;
+
     const char *psz = strstr(desc->parameters, "packetization-mode=");
     if(!psz || psz[19] == '\0' || atoi(&psz[19]) > 1)
         return VLC_ENOTSUP;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ecf1571e19119f23481d866e8422a5e146ffc277

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ecf1571e19119f23481d866e8422a5e146ffc277
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list