Gbp-Pq: Name CVE-2021-36412.patch
/*no flsuh (no aggregation)*/
if (!data) return GF_OK;
+ if (data_size<4) return GF_NON_COMPLIANT_BITSTREAM;
offset = 0;
have_seq = GF_FALSE;
mpv_hdr[3] = 0;
if ((pic_type==2) || (pic_type== 3)) {
+ if (data_size<5) return GF_NON_COMPLIANT_BITSTREAM;
mpv_hdr[3] = (u8) ((((u32)payload[3]) << 5) & 0xf);
if ((payload[4] & 0x80) != 0) mpv_hdr[3] |= 0x10;
if (pic_type == 3) mpv_hdr[3] |= (payload[4] >> 3) & 0xf;