diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 23:16:49 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 23:16:49 +0100 |
commit | 464cef4c14a6a550ee30810416d18686b5f3ffa0 (patch) | |
tree | 906af3c9685883fb966b8d95f2e416e68b9fee36 /libavcodec/vqavideo.c | |
parent | 9759d2b886057b90355716edb23262e17f9bc3f9 (diff) | |
parent | 5023b89bba198b2f8e43b7f555aeb9c30d33db9f (diff) | |
download | ffmpeg-464cef4c14a6a550ee30810416d18686b5f3ffa0.tar.gz |
Merge remote-tracking branch 'qatar/master'
* qatar/master:
xwma: Validate channels and bits_per_coded_sample.
mov: Do not read past the end of the ctts_data table.
mov: Add missing terminator to mov_ch_layout_map_1ch.
asf: reset side data elements on packet copy.
wmavoice: fix stack overread.
wmalossless: error out if a subframe is not used by any channel.
vqa: check palette chunk size before reading data.
wmalossless: reset sample pointer for each subframe.
wmalossless: error out on invalid values for order.
Conflicts:
libavcodec/vqavideo.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vqavideo.c')
-rw-r--r-- | libavcodec/vqavideo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vqavideo.c b/libavcodec/vqavideo.c index 9018837962..85725ccc87 100644 --- a/libavcodec/vqavideo.c +++ b/libavcodec/vqavideo.c @@ -401,7 +401,7 @@ static int vqa_decode_chunk(VqaContext *s) bytestream2_seek(&s->gb, cpl0_chunk, SEEK_SET); chunk_size = bytestream2_get_be32(&s->gb); /* sanity check the palette size */ - if (chunk_size / 3 > 256) { + if (chunk_size / 3 > 256 || chunk_size > bytestream2_get_bytes_left(&s->gb)) { av_log(s->avctx, AV_LOG_ERROR, "problem: found a palette chunk with %d colors\n", chunk_size / 3); return AVERROR_INVALIDDATA; |