[PATCH] fixed #2474
authorjeanlf <jeanlf@gpac.io>
Mon, 22 May 2023 15:37:24 +0000 (17:37 +0200)
committerMoritz Mühlenhoff <jmm@debian.org>
Mon, 19 Jun 2023 21:46:06 +0000 (22:46 +0100)
Gbp-Pq: Name CVE-2023-2840.patch

src/isomedia/movie_fragments.c

index 8485d7273dfbcabb3e63946443d6b74cc03b98b7..3bf290ecec36b6ae5f1a02eaf00421c059f2b6a7 100644 (file)
@@ -2704,7 +2704,8 @@ GF_Err gf_isom_fragment_add_sample(GF_ISOFile *movie, GF_ISOTrackID TrackID, con
        //rewrite OD frames
        if (traf->trex->track->Media->handler->handlerType == GF_ISOM_MEDIA_OD) {
                //this may fail if dependencies are not well done ...
-               Media_ParseODFrame(traf->trex->track->Media, sample, &od_sample);
+               GF_Err e = Media_ParseODFrame(traf->trex->track->Media, sample, &od_sample);
+               if (!od_sample) return e;
                sample = od_sample;
        }