Skip to content
Permalink
Browse files Browse the repository at this point in the history
fixed #1784 (fuzz)
  • Loading branch information
jeanlf committed May 10, 2021
1 parent fe5155c commit 984787d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/isomedia/isom_read.c
Expand Up @@ -694,7 +694,17 @@ GF_Descriptor *gf_isom_get_root_od(GF_ISOFile *movie)

//duplicate our descriptor
movie->LastError = gf_odf_desc_copy((GF_Descriptor *) movie->moov->iods->descriptor, &desc);
if (movie->LastError) return NULL;
if (movie->LastError) {
if (od) {
gf_list_del(od->ESDescriptors);
gf_free(od);
}
if (iod) {
gf_list_del(iod->ESDescriptors);
gf_free(iod);
}
return NULL;
}

if (!useIOD) {
isom_od = (GF_IsomObjectDescriptor *)desc;
Expand Down

0 comments on commit 984787d

Please sign in to comment.