From: jeanlf Date: Mon, 30 Aug 2021 14:06:09 +0000 (+0200) Subject: [PATCH] fixed #1892 X-Git-Tag: archive/raspbian/1.0.1+dfsg1-4+rpi1+deb11u3^2~88 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0013d06431ea72b0329fa627e0a25930c1cbc65d;p=gpac.git [PATCH] fixed #1892 Gbp-Pq: Name CVE-2021-40563.patch --- diff --git a/src/filters/reframe_nalu.c b/src/filters/reframe_nalu.c index bcad22c..f672aeb 100644 --- a/src/filters/reframe_nalu.c +++ b/src/filters/reframe_nalu.c @@ -1414,8 +1414,10 @@ static void naludmx_queue_param_set(GF_NALUDmxCtx *ctx, char *data, u32 size, u3 { GF_List *list = NULL, *alt_list = NULL; GF_AVCConfigSlot *sl; - u32 i, count; - u32 crc = gf_crc_32(data, size); + u32 i, count, crc; + + if (!size) return; + crc = gf_crc_32(data, size); if (ctx->is_hevc) { switch (ps_type) {