[PATCH] fixed #2345
authorjeanlf <jeanlf@gpac.io>
Mon, 12 Dec 2022 09:35:51 +0000 (10:35 +0100)
committerMoritz Mühlenhoff <jmm@debian.org>
Mon, 19 Jun 2023 21:46:06 +0000 (22:46 +0100)
Gbp-Pq: Name CVE-2022-47094.patch

src/filters/dmx_m2ts.c

index 2f7cd6d2350037db298606bdb9aef6a5b7a51df0..36082ab7ea67113e969862cdf37f73ebdef1d4b4 100644 (file)
@@ -263,7 +263,7 @@ static void m2tsdmx_declare_pid(GF_M2TSDmxCtx *ctx, GF_M2TS_PES *stream, GF_ESD
                case GF_M2TS_SYSTEMS_MPEG4_PES:
                        if (!esd) {
                                m4sys_iod_stream = GF_TRUE;
-                               count = gf_list_count(stream->program->pmt_iod->ESDescriptors);
+                               count = stream->program->pmt_iod ? gf_list_count(stream->program->pmt_iod->ESDescriptors) : 0;
                                for (i=0; i<count; i++) {
                                        esd = gf_list_get(stream->program->pmt_iod->ESDescriptors, i);
                                        if (esd->ESID == stream->mpeg4_es_id) break;