Browse Source

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

Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: James Zern <jzern@google.com>
tags/n4.3
Marton Balint James Zern 6 years ago
parent
commit
99e0007046
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libvpxdec.c

+ 1
- 1
libavcodec/libvpxdec.c View File

@@ -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;


Loading…
Cancel
Save