vqa: check palette chunk size before reading data.
authorRonald S. Bultje <rsbultje@gmail.com>
Wed, 21 Mar 2012 22:19:31 +0000 (15:19 -0700)
committerReinhard Tartler <siretart@tauware.de>
Sun, 29 Apr 2012 20:07:01 +0000 (22:07 +0200)
commitc21b858b278df60c849d86701019e7d096b0c1f4
tree1e9046dfe5a574e8892830c61721987918f8e68c
parent0b9bb581fdd0f873b64d5de582cd6ddd91e10ccc
vqa: check palette chunk size before reading data.

Prevents overreads beyond buffer boundaries.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
(cherry picked from commit 75d7975268394f4f16294b68ec6d6d5ac30da3ac)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavcodec/vqavideo.c