fixup CVE-2022-29340.patch
authorReinhard Tartler <siretart@tauware.de>
Sun, 5 Mar 2023 13:11:44 +0000 (08:11 -0500)
committerReinhard Tartler <siretart@tauware.de>
Sun, 5 Mar 2023 13:11:44 +0000 (08:11 -0500)
debian/patches/CVE-2022-29340.patch

index 7a3aaa72b5a57079ddf1f1df876b1550e2b37219..7cc1473239654cbaf9d78938c5245d5b43270c5a 100644 (file)
@@ -8,7 +8,16 @@ Index: gpac/src/isomedia/box_funcs.c
 ===================================================================
 --- gpac.orig/src/isomedia/box_funcs.c
 +++ gpac/src/isomedia/box_funcs.c
-@@ -303,8 +303,10 @@ GF_Err gf_isom_box_parse_ex(GF_Box **out
+@@ -90,6 +90,8 @@ static GF_Err gf_isom_full_box_read(GF_B
+ u64 unused_bytes = 0;
++#define GF_SKIP_BOX 10
++
+ GF_Err gf_isom_box_parse_ex(GF_Box **outBox, GF_BitStream *bs, u32 parent_type, Bool is_root_box)
+ {
+       u32 type, uuid_type, hdr_size, restore_type;
+@@ -303,8 +305,10 @@ GF_Err gf_isom_box_parse_ex(GF_Box **out
        if (e && (e != GF_ISOM_INCOMPLETE_FILE)) {
                gf_isom_box_del(newBox);
                *outBox = NULL;