From: jeanlf Date: Mon, 22 May 2023 15:37:24 +0000 (+0200) Subject: [PATCH] fixed #2474 X-Git-Tag: archive/raspbian/1.0.1+dfsg1-4+rpi1+deb11u3^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=021586ec59e005eb5f16223e6b442b289e1764d0;p=gpac.git [PATCH] fixed #2474 Gbp-Pq: Name CVE-2023-2840.patch --- diff --git a/src/isomedia/movie_fragments.c b/src/isomedia/movie_fragments.c index 8485d72..3bf290e 100644 --- a/src/isomedia/movie_fragments.c +++ b/src/isomedia/movie_fragments.c @@ -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; }