projects
/
gpac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b154918
)
[PATCH] fixed #1784 (fuzz)
author
jeanlf
<jeanlf@gpac.io>
Mon, 10 May 2021 09:24:17 +0000
(11:24 +0200)
committer
Moritz Mühlenhoff
<jmm@debian.org>
Mon, 19 Jun 2023 21:46:06 +0000
(22:46 +0100)
Gbp-Pq: Name CVE-2021-33365.patch
src/isomedia/isom_read.c
patch
|
blob
|
history
diff --git
a/src/isomedia/isom_read.c
b/src/isomedia/isom_read.c
index a654391c8ae8d9cf2faf6ebc6b50e884bb2f3080..b309054b47c7a1af4083918de950e71fc9cade8b 100644
(file)
--- a/
src/isomedia/isom_read.c
+++ b/
src/isomedia/isom_read.c
@@
-677,7
+677,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;