[PATCH] fixed #1719
authorjeanlf <jeanlf@gpac.io>
Mon, 29 Mar 2021 07:21:51 +0000 (09:21 +0200)
committerReinhard Tartler <siretart@tauware.de>
Tue, 25 May 2021 01:09:10 +0000 (21:09 -0400)
Gbp-Pq: Name CVE-2021-30015.patch

src/filters/reframe_av1.c

index dd4cff4997624a0004e73bf73cc946feb5727432..67eaa743ce28036bb1a75f1858e8a663fd517284 100644 (file)
@@ -718,6 +718,9 @@ static GF_Err av1dmx_parse_flush_sample(GF_Filter *filter, GF_AV1DmxCtx *ctx)
        GF_FilterPacket *pck;
        u8 *output;
 
+       if (!ctx->opid)
+               return GF_NON_COMPLIANT_BITSTREAM;
+               
        gf_bs_get_content_no_truncate(ctx->state.bs, &ctx->state.frame_obus, &pck_size, &ctx->state.frame_obus_alloc);
 
        if (!pck_size) {