[PATCH] fixed #1660
authorjeanlf <jeanlf@gpac.io>
Mon, 4 Jan 2021 10:10:48 +0000 (11:10 +0100)
committerSebastian Ramacher <sramacher@debian.org>
Wed, 1 Sep 2021 19:50:08 +0000 (20:50 +0100)
Gbp-Pq: Name CVE-2020-35982.patch

src/media_tools/isom_hinter.c

index 8fb06d77bda4497cfc637c0dfbe3b421148a59fd..9fc5f576d8f5aa561250481b304679c9c79b7702 100644 (file)
@@ -971,6 +971,8 @@ GF_Err gf_hinter_track_finalize(GF_RTPHinter *tkHint, Bool AddSystemInfo)
                if (avcc) {
                        sprintf(sdpLine, "a=fmtp:%d profile-level-id=%02X%02X%02X; packetization-mode=1", tkHint->rtp_p->PayloadType, avcc->AVCProfileIndication, avcc->profile_compatibility, avcc->AVCLevelIndication);
                } else {
+                       if (!svcc)
+                               return GF_ISOM_INVALID_FILE;
                        sprintf(sdpLine, "a=fmtp:%d profile-level-id=%02X%02X%02X; packetization-mode=1", tkHint->rtp_p->PayloadType, svcc->AVCProfileIndication, svcc->profile_compatibility, svcc->AVCLevelIndication);
                }