[PATCH] fixed #2493
authorjeanlf <jeanlf@gpac.io>
Thu, 15 Jun 2023 09:28:10 +0000 (11:28 +0200)
committerMoritz Mühlenhoff <jmm@debian.org>
Mon, 19 Jun 2023 21:46:06 +0000 (22:46 +0100)
Gbp-Pq: Name CVE-2023-3291.patch

src/filters/reframe_mp3.c

index 524b07d5ce109dac98018aa87ea1284b2662b0a7..b2587043b436696da9b1283b201dfc9a0dfbca68 100644 (file)
@@ -250,7 +250,7 @@ void id3dmx_flush(GF_Filter *filter, u8 *id3_buf, u32 id3_buf_size, GF_FilterPid
                        break;
                }
 
-               if (buf_alloc<=fsize) {
+               if (buf_alloc <= fsize+2) {
                        buf = gf_realloc(buf, fsize+2);
                        buf_alloc = fsize+2;
                }