Commit 99e00070 authored by Marton Balint's avatar Marton Balint Committed by James Zern

avcodec/libvpxdec: make sure BlockAdditional side data size >= 8

Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
Signed-off-by: 's avatarJames Zern <jzern@google.com>
parent 6b544770
......@@ -191,7 +191,7 @@ static int vpx_decode(AVCodecContext *avctx,
side_data = av_packet_get_side_data(avpkt,
AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL,
&side_data_size);
if (side_data_size > 1) {
if (side_data_size >= 8) {
const uint64_t additional_id = AV_RB64(side_data);
side_data += 8;
side_data_size -= 8;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment